:root {
    --primary: #a855f7;
    --primary-dark: #7e22ce;
    --primary-soft: #f3e8ff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --panel: #ffffff;
    --deep: #100b1f;
    --violet-deep: #2a1647;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

.site-header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.navbar {
    min-height: 76px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.28);
}

.brand-lockup strong,
.brand-lockup small {
    display: block;
}

.brand-lockup strong {
    font-size: 1.05rem;
    letter-spacing: 0;
}

.brand-lockup small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.nav-link {
    color: #475569;
    font-size: 0.94rem;
    font-weight: 750;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.btn {
    border-radius: 12px;
    font-weight: 800;
    padding: 0.72rem 1.12rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 16px 32px rgba(168, 85, 247, 0.26);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: rgba(168, 85, 247, 0.38);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 156px 0 96px;
    color: #fff;
    background:
        radial-gradient(circle at 72% 22%, rgba(168, 85, 247, 0.35), transparent 28%),
        linear-gradient(135deg, #0b1020 0%, var(--deep) 42%, var(--violet-deep) 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.12);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
}

.section-heading span {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.hero-section h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: #f8fafc;
    font-size: clamp(1.14rem, 2.2vw, 1.38rem);
    font-weight: 700;
}

.hero-support {
    max-width: 660px;
    margin: 0.8rem 0 0;
    color: #cbd5e1;
    font-size: 1rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-actions .btn-light,
.cta-actions .btn-light {
    color: var(--ink);
}

.hero-actions .btn-outline-light,
.cta-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.44);
}

.hero-visual {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.trust-bar {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.15rem 0;
}

.trust-items span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    color: #475569;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.section {
    padding: 94px 0;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 2.7rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.module-card,
.highlight-card,
.pricing-card,
.solution-grid article,
.dashboard-shell {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.module-card {
    position: relative;
    min-height: 250px;
    padding: 1.35rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -52px auto;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.13), rgba(56, 189, 248, 0.1));
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.28);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.11);
}

.module-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    place-items: center;
    border-radius: 16px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 1.25rem;
}

.status-badge,
.recommend,
.dash-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.status-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}

.status-badge.live {
    color: #047857;
    background: #d1fae5;
}

.status-badge.ready {
    color: #6d28d9;
    background: #ede9fe;
}

.status-badge.audit {
    color: #0f766e;
    background: #ccfbf1;
}

.module-card h3,
.highlight-card h3,
.pricing-card h3,
.solution-grid h3,
.dash-panel h3 {
    margin: 0 0 0.6rem;
    font-size: 1.08rem;
    font-weight: 900;
}

.module-card p,
.highlight-card p,
.solution-grid p,
.pricing-card p,
.accordion-body {
    color: var(--muted);
}

.workflow-section,
.dashboard-section,
.pricing-section {
    background: var(--soft);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(148px, 1fr));
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.flow-card {
    position: relative;
    min-height: 132px;
    padding: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fbfaff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.flow-card span {
    display: block;
    color: var(--primary-dark);
    font-weight: 950;
}

.flow-card strong {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
}

.flow-card i {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--primary);
}

.highlight-card {
    height: 100%;
    padding: 1.45rem;
}

.highlight-visual {
    display: flex;
    min-height: 150px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    border-radius: 20px;
    padding: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #111827, #3b1d5f);
}

.highlight-visual.quality {
    background: linear-gradient(135deg, #172033, #155e75);
}

.highlight-visual.saas {
    background: linear-gradient(135deg, #1f1538, #6d28d9);
}

.highlight-visual i {
    font-size: 2rem;
}

.highlight-visual span {
    font-weight: 900;
}

.dashboard-shell {
    padding: 1.25rem;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(56, 189, 248, 0.28)) border-box;
}

.dash-topbar,
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dash-topbar {
    margin-bottom: 1rem;
    border-radius: 18px;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #111827, #2a1647);
}

.dash-topbar small,
.dash-topbar strong {
    display: block;
}

.dash-topbar small {
    color: #cbd5e1;
}

.dash-topbar strong {
    font-size: 1.25rem;
}

.dash-pill {
    color: #1e1b4b;
    background: #f5f3ff;
}

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

.kpi-card,
.dash-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
}

.kpi-card span,
.kpi-card small {
    display: block;
    color: var(--muted);
}

.kpi-card strong {
    display: block;
    color: var(--ink);
    font-size: 2.15rem;
    font-weight: 950;
    line-height: 1.1;
}

.dash-content {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.8fr 1fr;
    gap: 0.9rem;
}

.task-row,
.schedule-panel li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
    color: #475569;
}

.task-row:last-child,
.schedule-panel li:last-child {
    border-bottom: 0;
}

.progress-line {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
}

.progress-bar {
    border-radius: 999px;
    background: var(--primary);
}

.progress-bar.mid {
    background: #38bdf8;
}

.progress-bar.soft {
    background: #22c55e;
}

.qc-ring {
    display: grid;
    width: 112px;
    height: 112px;
    margin: 0.5rem auto 1rem;
    place-items: center;
    border-radius: 50%;
    color: var(--primary-dark);
    background:
        radial-gradient(circle at center, #fff 54%, transparent 56%),
        conic-gradient(var(--primary) 0 91%, #ede9fe 91% 100%);
    font-size: 1.45rem;
    font-weight: 950;
}

.schedule-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.solutions-section {
    background: #fff;
}

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

.solution-grid article {
    padding: 1.35rem;
    transition: transform 0.2s ease;
}

.solution-grid article:hover {
    transform: translateY(-4px);
}

.solution-grid i {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 16px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 1.28rem;
}

.pricing-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 1.35rem;
}

.pricing-card.featured {
    border-color: rgba(168, 85, 247, 0.42);
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(168, 85, 247, 0.18);
}

.recommend {
    width: fit-content;
    margin-bottom: 0.8rem;
    color: #fff;
    background: var(--primary);
}

.pricing-card ul {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    color: #475569;
}

.pricing-card li::before {
    content: "✓";
    margin-right: 0.5rem;
    color: var(--primary);
    font-weight: 950;
}

.pricing-card .btn {
    margin-top: auto;
}

.faq-accordion {
    max-width: 920px;
    margin: 0 auto;
}

.accordion-item {
    overflow: hidden;
    border-color: var(--line);
    border-radius: 16px;
    margin-bottom: 0.8rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.accordion-button {
    color: var(--ink);
    font-weight: 900;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-dark);
    background: #faf5ff;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(168, 85, 247, 0.36);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.14);
}

.final-cta {
    padding: 0 0 92px;
    background: var(--soft);
}

.cta-panel {
    border-radius: 32px;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background:
        radial-gradient(circle at 85% 24%, rgba(168, 85, 247, 0.48), transparent 32%),
        linear-gradient(135deg, #111827, #26143f);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
}

.cta-panel h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 1.08;
}

.cta-panel p {
    max-width: 720px;
    margin: 1rem 0 0;
    color: #e2e8f0;
    font-size: 1.12rem;
}

.site-footer {
    padding: 34px 0;
    color: #cbd5e1;
    background: #0b1020;
}

.footer-grid strong,
.footer-grid span {
    display: block;
}

.footer-grid strong {
    color: #fff;
    font-size: 1.15rem;
}

.footer-grid span {
    color: #94a3b8;
    font-size: 0.86rem;
}

@media (max-width: 1199.98px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991.98px) {
    .navbar-collapse {
        border-top: 1px solid var(--line);
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .hero-section {
        padding: 128px 0 76px;
    }

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

    .pricing-card.featured {
        transform: none;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .brand-lockup small {
        display: none;
    }

    .section {
        padding: 68px 0;
    }

    .hero-section h1 {
        font-size: clamp(2.55rem, 15vw, 3.3rem);
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .feature-grid,
    .kpi-grid,
    .dash-content,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        padding: 0.8rem;
    }

    .dash-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
