:root {
    --am-blue: #1E3A8A;
    --am-indigo: #4F46E5;
    --am-soft: #EEF2FF;
    --am-border: #DBEAFE;
    --am-text: #0F172A;
    --am-muted: #475569;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
}

body {
    font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif !important;
    font-size: 16px;
    line-height: 1.75;
    color: var(--am-text);
    background-color: #F8FAFC;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-bg {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(79, 70, 229, 0.76)), url('https://picsum.photos/id/1011/2000/1200');
    background-size: cover;
    background-position: center;
}

.home-title {
    font-size: clamp(3.25rem, 4.2vw, 3.75rem);
    line-height: 1.16;
    font-weight: 800;
}

.warm-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--am-border), transparent);
}

.heading-serif,
.display-title,
[style*="Playfair Display"] {
    font-family: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}

[class*="tracking-tight"],
[class*="tracking-tighter"] {
    letter-spacing: 0 !important;
}

p {
    line-height: 1.78;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3.8rem, 7vw, 6.5rem);
    border-bottom: 1px solid var(--am-border);
    background:
        linear-gradient(135deg, rgba(238, 242, 255, 0.96), rgba(255, 255, 255, 0.94) 46%, rgba(219, 234, 254, 0.72));
    background-size: cover;
    background-position: center;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.35), transparent);
}

.products-page-hero {
    background-image:
        linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.74) 42%, rgba(238, 242, 255, 0.16) 100%),
        url("../img/products-hero-bg.png");
}

.cases-page-hero {
    background-image:
        linear-gradient(90deg, rgba(248, 250, 252, 0.93) 0%, rgba(248, 250, 252, 0.76) 42%, rgba(238, 242, 255, 0.14) 100%),
        url("../img/cases-hero-hospitals-bg.png");
}

.mcn-hero {
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.94), rgba(79, 70, 229, 0.78)),
        url("../img/mcn-hero-bg.png") center / cover no-repeat;
}

.mcn-hero-title {
    max-width: 820px;
}

.page-eyebrow {
    color: var(--am-indigo);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
}

.page-title {
    max-width: 880px;
    margin-top: 0.7rem;
    color: var(--am-text);
    font-size: clamp(2.9rem, 3.9vw, 3.5rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: 0 !important;
}

.page-title.center {
    margin-left: auto;
    margin-right: auto;
}

.page-lead {
    max-width: 720px;
    margin-top: 1.35rem;
    color: var(--am-muted);
    font-size: 1.25rem;
    line-height: 1.72;
}

.page-lead.center {
    margin-left: auto;
    margin-right: auto;
}

.section-header,
.section-title {
    color: var(--am-text);
    font-size: 32px !important;
    line-height: 1.28 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.section-copy {
    color: var(--am-muted);
    font-size: 1.08rem;
    line-height: 1.82;
}

.elevated-panel {
    border: 1px solid var(--am-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 50px -36px rgba(30, 58, 138, 0.45);
}

.metric-card {
    border: 1px solid var(--am-border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 45px -36px rgba(30, 58, 138, 0.35);
}

.soft-band {
    background: linear-gradient(180deg, #F8FAFC, #EEF2FF);
    border-top: 1px solid var(--am-border);
    border-bottom: 1px solid var(--am-border);
}

.site-header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 44px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.is-active {
    color: var(--am-indigo);
}

.site-header .nav-link.is-active {
    font-weight: 700;
}

.site-header .nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--am-blue), var(--am-indigo));
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-header .nav-link:hover::after,
.site-header .nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--am-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.site-header > .max-w-screen-2xl {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem;
}

.site-header-inner {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 250px;
    flex: 0 0 250px;
}

.site-logo {
    width: 164px;
    height: auto;
    display: block;
    flex: 0 0 164px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}

.site-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 42px;
}

.site-actions {
    min-width: 250px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 250px;
}

.site-cta {
    display: inline-flex;
    min-width: 120px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--am-indigo);
    padding: 0 24px;
    border: 0;
    appearance: none;
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-cta:hover {
    background: var(--am-blue);
    transform: translateY(-1px);
}

.site-header a:focus:not(:focus-visible),
.site-header button:focus:not(:focus-visible) {
    outline: none;
}

.site-header a:focus,
.site-header button:focus {
    outline: none;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
    border-radius: 0.9rem;
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    background: #171A24;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(126deg, transparent 0 28%, rgba(255, 255, 255, 0.045) 28% 40%, transparent 40% 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 38%, rgba(255, 255, 255, 0.035) 74%, transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px);
    opacity: 0.9;
}

.site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(36vw, 520px);
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.38));
}

.site-footer-inner {
    position: relative;
    z-index: 1;
}

.site-footer-top {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
    color: #fff;
}

.site-footer-logo-wrap {
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.site-footer-logo {
    height: 2.15rem;
    object-fit: contain;
}

.site-footer-brand-text {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0 !important;
}

.site-footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    font-weight: 600;
}

.site-footer-nav a,
.site-footer-policy a,
.site-footer-legal a {
    transition: color 0.2s ease;
}

.site-footer-nav a:hover,
.site-footer-policy a:hover,
.site-footer-legal a:hover,
.site-footer-social a:hover {
    color: #fff;
}

.site-footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 0 0 auto;
}

.site-footer-social a,
.site-footer-social span {
    min-width: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer-social a:hover {
    transform: translateY(-1px);
}

.site-footer-social-text {
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2rem;
    padding: 1.45rem 0 1.85rem;
}

.site-footer-policy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.55rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
}

.site-footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.35rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
}

.site-footer-locale {
    grid-row: 1 / span 2;
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
    white-space: nowrap;
}

.soft-btn {
    color: #fff;
    background: var(--am-indigo);
    transition: all 0.3s ease;
}

.soft-btn:hover {
    background: var(--am-blue);
    transform: translateY(-1px);
}

.elegant-card {
    border: 1px solid var(--am-border);
    background: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-card:hover {
    transform: translateY(-6px);
    border-color: var(--am-indigo);
    box-shadow: 0 22px 30px -18px rgb(30 58 138 / 0.35);
}

.service-card {
    transition: all 0.4s ease;
}

.mock-header {
    background: linear-gradient(to right, var(--am-blue), var(--am-indigo));
}

.feature-item {
    transition: all 0.2s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

.nav-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    display: none !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--am-border);
    color: var(--am-blue);
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-icon-button:hover,
.nav-icon-button[aria-expanded="true"] {
    color: #fff;
    border-color: var(--am-indigo);
    background: var(--am-indigo);
}

.mobile-menu-panel {
    display: none;
    border-top: 1px solid var(--am-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 30px -24px rgba(15, 23, 42, 0.35);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
}

.mobile-menu-link i {
    width: 1.1rem;
    color: var(--am-indigo);
    text-align: center;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
    color: var(--am-blue);
    background: var(--am-soft);
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.85rem;
    margin-top: 0.5rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--am-blue), var(--am-indigo));
    font-weight: 700;
}

.icon-tile {
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--am-indigo);
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
    font-size: 1.35rem;
}

.icon-tile-lg {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.55rem;
}

.elegant-card p,
.case-card,
.dashboard-mock,
.feature-item,
.mobile-menu-link,
.mobile-menu-cta {
    line-height: 1.72;
}

.elegant-card p,
.case-card .text-sm,
.elevated-panel .section-copy {
    font-size: 1rem !important;
}

.case-card {
    border-color: var(--am-border) !important;
    box-shadow: 0 20px 45px -38px rgba(30, 58, 138, 0.4);
}

.case-card:hover {
    box-shadow: 0 28px 55px -34px rgba(30, 58, 138, 0.45) !important;
}

.dashboard-mock {
    border: 1px solid #e0e7ff;
    box-shadow: 0 28px 55px -36px rgba(30, 58, 138, 0.38) !important;
}

@media (max-width: 1279px) and (min-width: 1024px) {
    .site-brand,
    .site-actions {
        min-width: 210px;
        flex-basis: 210px;
    }

    .site-logo {
        width: 150px;
        flex-basis: 150px;
    }

    .site-nav {
        gap: 28px;
    }

    .site-cta {
        min-width: 112px;
        height: 42px;
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 1023px) {
    .site-header-inner {
        height: 4rem;
    }

    .site-header > .max-w-screen-2xl {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .site-brand {
        min-width: 0;
        flex: 0 1 auto;
        gap: 0;
    }

    .site-logo {
        width: 148px;
        height: auto;
        flex-basis: 148px;
        border-radius: 0;
    }

    .site-actions {
        min-width: 0;
        display: none !important;
    }

    .site-nav {
        display: none !important;
    }

    .nav-icon-button {
        display: inline-flex !important;
    }

    .mobile-menu-panel:not(.hidden) {
        display: block;
    }

    .site-footer-top {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 1.4rem;
        padding: 1.75rem 0;
    }

    .site-footer-nav,
    .site-footer-social {
        justify-content: flex-start;
    }

    .site-footer-bottom {
        grid-template-columns: 1fr;
    }

    .site-footer-locale {
        grid-row: auto;
        grid-column: auto;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .max-w-screen-2xl.mx-auto.px-8,
    .max-w-screen-2xl.mx-auto.px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mobile-menu-panel {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .hero-bg {
        height: auto !important;
        min-height: calc(100svh - 4rem);
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    h1.text-7xl,
    h1.text-6xl,
    .display-title,
    .home-title,
    .heading-serif.text-6xl,
    .heading-serif.text-7xl {
        font-size: clamp(2.65rem, 12vw, 4rem) !important;
        line-height: 1.08 !important;
    }

    .heading-serif.text-5xl,
    .text-5xl {
        font-size: 2.25rem !important;
        line-height: 1.18 !important;
    }

    .heading-serif.text-4xl,
    .section-header,
    .section-title {
        font-size: 1.85rem !important;
        line-height: 2.2rem !important;
    }

    .page-hero {
        padding-top: 3.75rem;
        padding-bottom: 3.5rem;
        background-position: 58% center;
    }

    .products-page-hero,
    .cases-page-hero {
        background-image:
            linear-gradient(90deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.84) 54%, rgba(238, 242, 255, 0.42) 100%);
    }

    .products-page-hero {
        background-image:
            linear-gradient(90deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.84) 54%, rgba(238, 242, 255, 0.42) 100%),
            url("../img/products-hero-bg.png");
    }

    .cases-page-hero {
        background-image:
            linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 48%, rgba(238, 242, 255, 0.32) 100%),
            url("../img/cases-hero-hospitals-mobile-bg.png");
        background-position: 48% center;
    }

    .page-title {
        font-size: clamp(2.55rem, 12vw, 4rem);
        line-height: 1.08;
    }

    .mcn-hero-title {
        max-width: 100%;
        font-size: clamp(2.25rem, 9.4vw, 2.85rem) !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere;
    }

    .page-lead,
    .section-copy {
        font-size: 1rem;
        line-height: 1.76;
    }

    .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.7rem !important;
    }

    .text-xl {
        font-size: 1.05rem !important;
        line-height: 1.75rem !important;
    }

    .rounded-3xl {
        border-radius: 1.25rem !important;
    }

    .site-footer-brand-text {
        font-size: 1.25rem;
    }

    .site-footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        gap: 0.8rem 1.25rem;
        justify-content: start;
        font-size: 0.92rem;
    }

    .site-footer-social {
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    .site-footer-policy,
    .site-footer-legal {
        gap: 0.75rem 1rem;
        font-size: 0.82rem;
    }

    .site-footer-locale {
        font-size: 0.86rem;
    }
}
