:root {
    --star-teal: #4f9aae;
    --deep-ink: #173640;
    --night-line: #2f5660;
    --cloud: #f7fbfc;
    --mist: #e2f0f3;
    --signal: #f0b44d;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(23, 54, 64, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--deep-ink);
    background:
        linear-gradient(120deg, rgba(79, 154, 174, 0.08), transparent 34rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(226, 240, 243, 0.38)),
        var(--cloud);
    font-family: "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.protected-logo {
    user-select: none;
    -webkit-user-drag: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 18px max(16px, calc((100vw - 1120px) / 2));
    background: rgba(247, 251, 252, 0.86);
    backdrop-filter: blur(14px);
}

.brand img {
    width: 164px;
    height: auto;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--star-teal);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    color: rgba(23, 54, 64, 0.76);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav a,
.nav-action,
.button {
    border-radius: 6px;
}

.site-nav a[aria-current="page"] {
    color: var(--star-teal);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 0.8rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 50%;
    z-index: 20;
    display: grid;
    min-width: 148px;
    border: 1px solid rgba(79, 154, 174, 0.24);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(23, 54, 64, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown-menu a {
    color: rgba(23, 54, 64, 0.76);
    padding: 8px 10px;
    white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.site-nav a:focus-visible,
.nav-action:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(240, 180, 77, 0.72);
    outline-offset: 4px;
}

.nav-action {
    border: 1px solid rgba(79, 154, 174, 0.45);
    padding: 10px 14px;
    color: var(--deep-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(2.25rem, 5vw, 4.5rem);
    width: min(1120px, calc(100% - 32px));
    min-height: calc(100vh - 86px);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--star-teal);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 9em;
    margin-bottom: 1.3rem;
    font-size: clamp(2.6rem, 5.15vw, 4.65rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

h2 {
    max-width: 13ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 4.8vw, 4.1rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

h3 {
    margin-bottom: 0.55rem;
    font-size: 1.18rem;
    line-height: 1.35;
}

.hero-lead {
    max-width: 38rem;
    margin-bottom: 2rem;
    color: rgba(23, 54, 64, 0.78);
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-weight: 900;
    line-height: 1.2;
}

.button.primary {
    color: var(--white);
    background: var(--deep-ink);
    box-shadow: 0 14px 34px rgba(23, 54, 64, 0.18);
}

.button.secondary {
    color: var(--deep-ink);
    background: var(--white);
    border: 1px solid rgba(79, 154, 174, 0.28);
}

.button.ghost {
    color: var(--deep-ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(79, 154, 174, 0.34);
}

.orbit-panel {
    position: relative;
    min-height: 560px;
    border: 1px solid rgba(79, 154, 174, 0.22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(79, 154, 174, 0.18), transparent 23rem),
        rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.orbit-panel::before,
.orbit-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(79, 154, 174, 0.28);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-24deg);
}

.orbit-panel::before {
    inset: 54px 74px;
}

.orbit-panel::after {
    inset: 118px 44px 86px 118px;
}

.orbit-card {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(79, 154, 174, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(23, 54, 64, 0.12);
}

.orbit-card.core {
    top: 50%;
    left: 50%;
    width: min(62%, 330px);
    border-color: transparent;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
}

.orbit-card.core img {
    filter: drop-shadow(0 22px 42px rgba(23, 54, 64, 0.16));
    transform: translateY(-7%);
}

.orbit-card.item {
    width: 150px;
    padding: 16px;
}

.orbit-card.item span {
    display: block;
    color: var(--star-teal);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.orbit-card.item strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
}

.orbit-card.python {
    top: 72px;
    right: 54px;
}

.orbit-card.flask {
    bottom: 78px;
    right: 86px;
}

.orbit-card.system {
    bottom: 130px;
    left: 42px;
}

.section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.services-title {
    max-width: 17ch;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    text-align: center;
}

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

.service-card,
.work-list article,
.process-card,
.contact-panel {
    border: 1px solid rgba(79, 154, 174, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 48px rgba(23, 54, 64, 0.08);
}

.service-card {
    min-height: 250px;
    padding: 24px;
}

.service-tag,
.work-list span,
.contact-panel span {
    display: inline-flex;
    margin-bottom: 1.2rem;
    color: var(--star-teal);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.service-card p:not(.service-tag),
.work-list p,
.process-list p,
.contact-copy p,
.contact-panel p {
    color: rgba(23, 54, 64, 0.72);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.work-list article {
    min-height: 260px;
    padding: 22px;
}

.process-list {
    display: grid;
    position: relative;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list::before {
    content: "";
    position: absolute;
    left: 38px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: linear-gradient(180deg, rgba(79, 154, 174, 0.12), rgba(79, 154, 174, 0.52), rgba(79, 154, 174, 0.12));
}

.process-step {
    display: grid;
    position: relative;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.process-index {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    justify-self: center;
    width: 54px;
    height: 54px;
    margin-top: 10px;
    border: 1px solid rgba(79, 154, 174, 0.42);
    border-radius: 50%;
    background: rgba(247, 251, 252, 0.96);
    color: var(--star-teal);
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(23, 54, 64, 0.1);
}

.process-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    align-items: start;
    padding: 22px 24px;
}

.process-list strong {
    color: var(--star-teal);
    font-size: 1.2rem;
}

.process-list p {
    margin-bottom: 0;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-copy h2 {
    max-width: 15ch;
}

.contact-copy p {
    max-width: 36rem;
    margin-top: 1.3rem;
}

.contact-panel {
    padding: 28px;
}

.contact-panel strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    line-height: 1.35;
}

.contact-panel .button {
    margin-top: 1.5rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(79, 154, 174, 0.24);
    padding: 26px max(16px, calc((100vw - 1120px) / 2)) 34px;
    background: rgba(247, 251, 252, 0.58);
    color: rgba(23, 54, 64, 0.66);
    font-size: 0.95rem;
}

@media (hover: hover) {
    .site-nav a:hover,
    .nav-action:hover {
        color: var(--star-teal);
    }

    .button.primary:hover {
        background: var(--night-line);
    }

    .button.secondary:hover,
    .button.ghost:hover {
        border-color: rgba(240, 180, 77, 0.8);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .orbit-panel::before {
        animation: drift 18s linear infinite;
    }

    .orbit-panel::after {
        animation: drift 26s linear infinite reverse;
    }
}

@keyframes drift {
    from {
        transform: rotate(-24deg);
    }

    to {
        transform: rotate(336deg);
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(79, 154, 174, 0.2);
        padding-top: 0.75rem;
        gap: 0;
        overflow: visible;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav > a,
    .nav-dropdown > a {
        padding: 0.7rem 0;
    }

    .nav-dropdown {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        display: grid;
        min-width: 0;
        border: 0;
        border-left: 1px solid rgba(79, 154, 174, 0.24);
        border-radius: 0;
        margin: 0 0 0.35rem 0.4rem;
        padding: 0 0 0 0.75rem;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .hero,
    .contact-section,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    h1,
    h2 {
        max-width: 100%;
    }

    .orbit-panel {
        min-height: 460px;
    }

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

    .process-list::before {
        left: 27px;
    }

    .process-step {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 0.9rem;
    }

    .process-index {
        width: 42px;
        height: 42px;
        margin-top: 14px;
        font-size: 0.9rem;
    }

    .process-card {
        gap: 0.35rem;
    }
}

@media (max-width: 620px) {
    .brand img {
        width: 136px;
    }

    .nav-action {
        padding: 8px 11px;
    }

    .site-nav {
        font-size: 0.88rem;
    }

    .hero-actions,
    .site-footer {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .orbit-panel {
        min-height: 390px;
    }

    .orbit-card.core {
        width: 72%;
        padding: 0;
    }

    .orbit-card.item {
        width: 132px;
        padding: 12px;
    }

    .orbit-card.python {
        top: 36px;
        right: 18px;
    }

    .orbit-card.flask {
        right: 24px;
        bottom: 42px;
    }

    .orbit-card.system {
        bottom: 110px;
        left: 16px;
    }

    .service-grid,
    .work-list {
        grid-template-columns: 1fr;
    }

    .service-card,
    .work-list article {
        min-height: auto;
    }

    .process-list {
        gap: 0.75rem;
    }

    .process-list::before {
        left: 21px;
        top: 24px;
        bottom: 24px;
    }

    .process-step {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.65rem;
    }

    .process-index {
        width: 34px;
        height: 34px;
        margin-top: 16px;
        font-size: 0.82rem;
    }

    .process-card {
        padding: 18px;
    }
}
