:root {
    --navy: #102a43;
    --blue: #1769aa;
    --cyan: #29b6c8;
    --orange: #f4a11a;
    --ink: #17212b;
    --muted: #66788a;
    --line: #dce5ec;
    --surface: #ffffff;
    --surface-alt: #f4f8fb;
    --shadow: 0 22px 60px rgba(16, 42, 67, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(220, 229, 236, 0.85);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    position: relative;
    color: #334e68;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 90px;
    background:
        radial-gradient(circle at 90% 20%, rgba(41, 182, 200, 0.22), transparent 32%),
        linear-gradient(135deg, #f8fbfd 0%, #edf5fa 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(23, 105, 170, 0.14);
    border-radius: 50%;
    right: -140px;
    bottom: -180px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 68px;
    align-items: center;
}

.eyebrow,
.section-kicker,
.project-number,
.card-label {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: var(--blue);
}

.hero-description {
    max-width: 720px;
    margin: 28px 0 0;
    color: #486581;
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.18);
}

.button.secondary {
    border: 1px solid #b8c9d6;
    background: rgba(255, 255, 255, 0.68);
    color: var(--navy);
}

.hero-card {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 26px 0 0 26px;
    background: linear-gradient(var(--cyan), var(--blue));
}

.hero-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.75rem;
    line-height: 1.42;
}

.hero-card p {
    margin: 18px 0 0;
    color: var(--muted);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf4fa;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
}

.section h2,
.contact-section h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.2;
}

.section-copy {
    color: #486581;
    font-size: 1.06rem;
}

.section-copy p:first-child {
    margin-top: 0;
}

.section-copy p:last-child {
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.section-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.project-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.project-image {
    min-height: 100%;
    background: #dce8ef;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 48px;
}

.project-content h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.9rem, 3.3vw, 2.7rem);
    line-height: 1.3;
}

.project-summary {
    margin: 22px 0 0;
    color: #526b7e;
    font-size: 1.02rem;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.project-details div {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.project-details h4 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.95rem;
}

.project-details p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.project-links {
    margin-top: 30px;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.workflow-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    margin-top: 54px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.workflow-image {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.workflow-copy h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.8rem;
    line-height: 1.35;
}

.workflow-copy p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.skill-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16, 42, 67, 0.1);
}

.skill-card span {
    color: var(--orange);
    font-weight: 900;
}

.skill-card h3 {
    margin: 40px 0 12px;
    color: var(--navy);
    font-size: 1.25rem;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.contact-section {
    padding: 90px 0;
    background: var(--navy);
    color: #fff;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.contact-section h2 {
    color: #fff;
}

.contact-section p {
    color: #c8d9e8;
}

.section-kicker.light {
    color: #6ed5e2;
}

.contact-placeholder {
    display: grid;
    gap: 14px;
}

.contact-placeholder p {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.contact-placeholder strong {
    color: #fff;
}

.site-footer {
    background: #0a1d2f;
    color: #a9bfd1;
}

.footer-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-wrap p {
    margin: 0;
}

.footer-wrap a {
    color: #d7e7f2;
    text-decoration: none;
}

@media (max-width: 960px) {
    .hero-grid,
    .section-grid,
    .project-card,
    .workflow-panel,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 44px;
    }

    .project-image {
        max-height: 500px;
    }

    .skill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .site-header {
        position: static;
    }

    .nav-wrap {
        padding: 14px 0;
        align-items: flex-start;
    }

    .nav {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .nav a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 74px 0 64px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .section {
        padding: 76px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 34px;
    }

    .project-content {
        padding: 30px 24px;
    }

    .project-details,
    .skill-grid {
        grid-template-columns: 1fr;
    }

    .workflow-panel {
        padding: 22px;
    }

    .skill-card {
        min-height: auto;
    }

    .footer-wrap {
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}
