/* ==========================================================================
   GMPTMS · 培训与资质管理系统 产品页
   list_60.css
   ========================================================================== */

* {
    box-sizing: border-box;
}

.tms-page {
    --tms-ink: #071a20;
    --tms-ink-2: #0b2b33;
    --tms-emerald: #0fae9a;
    --tms-emerald-deep: #07857a;
    --tms-mint: #78f0d9;
    --tms-mint-soft: #dff7f2;
    --tms-muted: #5f767c;
    --tms-line: #e1edeb;
    --tms-paper: #f7faf9;
    --tms-tint: #eef6f4;
    --tms-gold: #c99a4e;
    position: relative;
    overflow: clip;
    color: var(--tms-ink);
    background: var(--tms-paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tms-page :where(h1, h2, h3, h4, p, ul, ol, li) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tms-page a {
    color: inherit;
    text-decoration: none;
}

.tms-container {
    position: relative;
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

/* 本页让固定导航与深色首屏更好地衔接 */
.landing-page .navbar {
    background: rgba(3, 20, 25, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(124, 243, 220, 0.12);
}

.tms-page section[id] {
    scroll-margin-top: 92px;
}

/* ------------------------------ Hero ------------------------------ */

.tms-hero {
    position: relative;
    padding: 116px 0 0;
    color: #effffb;
    background:
        radial-gradient(120% 90% at 78% 4%, rgba(15, 174, 154, 0.2), transparent 55%),
        radial-gradient(90% 80% at 8% 96%, rgba(6, 108, 106, 0.34), transparent 62%),
        linear-gradient(135deg, #04161b 0%, #062a30 46%, #083b3c 100%);
    isolation: isolate;
}

.tms-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.tms-grid {
    position: absolute;
    inset: -10% -5% 0;
    background-image:
        linear-gradient(rgba(160, 244, 231, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 244, 231, 0.06) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 60% 20%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 75% at 60% 20%, #000 20%, transparent 78%);
}

.tms-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(84px);
    pointer-events: none;
}

.tms-orb-a {
    top: -160px;
    right: 4%;
    width: 520px;
    height: 520px;
    background: rgba(20, 196, 170, 0.26);
}

.tms-orb-b {
    bottom: -220px;
    left: -120px;
    width: 520px;
    height: 520px;
    background: rgba(11, 121, 122, 0.32);
}

.tms-hero-top {
    z-index: 1;
}

.tms-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 52px;
    color: rgba(219, 247, 242, 0.45);
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

.tms-crumbs a {
    color: rgba(219, 247, 242, 0.72);
    transition: color 0.2s ease;
}

.tms-crumbs a:hover {
    color: var(--tms-mint);
}

.tms-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 48px;
    align-items: center;
}

.tms-hero-copy {
    max-width: 560px;
}

.tms-eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(124, 243, 220, 0.26);
    border-radius: 999px;
    color: #a9f4e7;
    background: rgba(8, 63, 63, 0.45);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.tms-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tms-mint);
    box-shadow: 0 0 0 4px rgba(124, 243, 220, 0.14);
    animation: tmsPulse 3.2s ease-in-out infinite;
}

.tms-hero h1 {
    margin: 26px 0 22px;
    color: #f4fffd;
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.tms-hero h1 span {
    background: linear-gradient(96deg, #7cf3dc 8%, #d6fff7 48%, #7cf3dc 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .tms-hero h1 span {
        color: #9ff8e9;
        background: none;
    }
}

.tms-lead {
    max-width: 520px;
    color: rgba(222, 246, 242, 0.72);
    font-size: 16.5px;
    line-height: 1.95;
}

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

.tms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.tms-btn-primary {
    color: #03231f;
    background: linear-gradient(135deg, #2bdfc4, #0aa392);
    box-shadow: 0 16px 38px rgba(10, 163, 146, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tms-btn-primary:hover {
    background: linear-gradient(135deg, #43ebd1, #0bb6a3);
    box-shadow: 0 20px 44px rgba(10, 163, 146, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tms-btn-ghost {
    border-color: rgba(196, 242, 234, 0.26);
    color: #e8fffb;
    background: rgba(255, 255, 255, 0.05);
}

.tms-btn-ghost:hover {
    border-color: rgba(196, 242, 234, 0.46);
    background: rgba(255, 255, 255, 0.1);
}

.tms-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 34px;
}

.tms-hero-notes li {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: rgba(216, 245, 240, 0.66);
    font-size: 12.5px;
}

.tms-hero-notes li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(124, 243, 220, 0.3);
    border-radius: 50%;
    color: var(--tms-mint);
    font-size: 8.5px;
}

/* Hero visual · app mock */

.tms-hero-visual {
    position: relative;
    min-width: 0;
    margin-top: 8px;
    padding: 22px 0 30px;
}

.tms-app {
    position: relative;
    z-index: 1;
    padding: 10px;
    border: 1px solid rgba(150, 240, 226, 0.18);
    border-radius: 17px;
    background: linear-gradient(160deg, rgba(31, 70, 72, 0.92), rgba(6, 27, 31, 0.97));
    box-shadow: 0 50px 100px rgba(0, 8, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tms-app-bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    height: 28px;
    padding: 0 6px 8px;
    color: rgba(215, 243, 238, 0.5);
    font-size: 9px;
}

.tms-app-dots {
    display: inline-flex;
    gap: 4px;
}

.tms-app-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.tms-app-dots i:first-child {
    background: rgba(255, 138, 128, 0.55);
}

.tms-app-dots i:nth-child(2) {
    background: rgba(255, 208, 122, 0.55);
}

.tms-app-dots i:nth-child(3) {
    background: rgba(124, 243, 220, 0.55);
}

.tms-app-url {
    justify-self: center;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 8.5px;
    letter-spacing: 0.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tms-app-live {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(124, 243, 220, 0.3);
    border-radius: 999px;
    color: #9df6e7;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.tms-app-live i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7cf3dc;
}

.tms-app-body {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 392px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    color: #123238;
}

.tms-app-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px;
    border-right: 1px solid #e2edec;
    background: linear-gradient(180deg, #f7fcfb, #eef6f5);
}

.tms-app-brand {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 2px 10px;
    border-bottom: 1px solid #e5f0ee;
}

.tms-app-brand span {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(140deg, #2bdfc4, #07857a);
    font-size: 8.5px;
    font-weight: 800;
}

.tms-app-brand b {
    color: #0d3a3a;
    font-size: 9.5px;
    letter-spacing: 0.05em;
}

.tms-app-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tms-app-menu li {
    position: relative;
    padding: 6px 7px;
    border-radius: 5px;
    color: #6b8085;
    font-size: 9px;
    white-space: nowrap;
}

.tms-app-menu li.is-active {
    color: #07857a;
    background: #e4f7f2;
    font-weight: 700;
}

.tms-app-menu li.is-active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 11px;
    border-radius: 2px;
    background: var(--tms-emerald);
    transform: translateY(-50%);
}

.tms-app-user {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
    padding: 6px;
    border: 1px solid #e6f0ef;
    border-radius: 6px;
    background: #fff;
}

.tms-app-user > span {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #07857a;
    background: #d9f2eb;
    font-size: 7.5px;
    font-weight: 800;
}

.tms-app-user i {
    display: flex;
    flex-direction: column;
    font-style: normal;
}

.tms-app-user b {
    color: #1c4146;
    font-size: 7.5px;
}

.tms-app-user em {
    color: #8ba0a3;
    font-size: 6.8px;
    font-style: normal;
}

.tms-app-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
}

.tms-app-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.tms-app-title {
    display: flex;
    gap: 5px;
    align-items: center;
    min-width: 0;
    color: #0f363d;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tms-folder {
    position: relative;
    width: 11px;
    height: 8px;
    border: 1.2px solid #12b39f;
    border-radius: 1.5px;
}

.tms-folder::before {
    content: "";
    position: absolute;
    top: -3.5px;
    left: -1.2px;
    width: 5px;
    height: 3px;
    border: 1.2px solid #12b39f;
    border-bottom: 0;
    border-radius: 1.5px 1.5px 0 0;
    background: #fff;
}

.tms-app-title em {
    display: inline-grid;
    place-items: center;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    color: #0a8a7a;
    background: #e8f8f3;
    font-size: 7.5px;
    font-style: normal;
}

.tms-app-tools {
    display: flex;
    flex: none;
    gap: 6px;
    align-items: center;
}

.tms-app-tools span,
.tms-app-tools b {
    padding: 4px 9px;
    border: 1px solid #e2eceb;
    border-radius: 4px;
    color: #6c8187;
    background: #fff;
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.tms-app-tools b {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #25d0b6, #0aa392);
    font-weight: 700;
}

.tms-app-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    flex: 1;
}

.tms-mcard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 124px;
    padding: 9px;
    border: 1px solid #e6eeee;
    border-radius: 7px;
    background: #fff;
}

.tms-mcard header {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    justify-content: space-between;
}

.tms-mcard h4 {
    color: #143940;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.4;
}

.tms-mcard header span {
    flex: none;
    padding: 1px 5px;
    border: 1px solid #cdeae4;
    border-radius: 3px;
    color: #0e9384;
    font-size: 7px;
    font-weight: 600;
    white-space: nowrap;
}

.tms-mcard header span.is-solid {
    color: #fff;
    background: #10a894;
    border-color: #10a894;
}

.tms-mcard > p {
    flex: 1;
    color: #74898d;
    font-size: 8.2px;
    line-height: 1.6;
}

.tms-mcard-stat {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid #e8f2f0;
    border-radius: 4px;
    color: #7c9296;
    background: #f5faf9;
    font-size: 7.5px;
}

.tms-mcard-stat b {
    color: #0b6f65;
    font-size: 9px;
    font-weight: 800;
}

.tms-mcard-stat i {
    margin-left: auto;
    color: #0f9384;
    font-size: 7px;
    font-style: normal;
}

.tms-mcard-stat i.is-warn {
    color: #bb8524;
}

.tms-mcard-meta {
    color: #9cadaf;
    font-size: 7.5px;
}

.tms-mcard-links {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 5px;
    align-items: center;
}

.tms-mcard-links span {
    color: #93a7aa;
    font-size: 7px;
    white-space: nowrap;
}

.tms-mcard-links b {
    justify-self: start;
    overflow: hidden;
    padding: 1px 5px;
    border: 1px dashed #cfe8e3;
    border-radius: 999px;
    color: #0e9384;
    font-size: 7px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tms-mcard.is-linked {
    border-color: rgba(15, 174, 154, 0.55);
    border-style: dashed;
    background: #f5fdfb;
    box-shadow: 0 0 0 1px rgba(15, 174, 154, 0.08);
}

.tms-mcard footer {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 5px;
    border-top: 1px dashed #eef4f3;
}

.tms-mcard footer em {
    color: #9cadaf;
    font-size: 7px;
    font-style: normal;
}

.tms-switch {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 11px;
    border-radius: 999px;
    background: #11b5a1;
}

.tms-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}

.tms-switch.is-off {
    background: #d5e3e2;
}

.tms-switch.is-off::after {
    right: auto;
    left: 2px;
}

/* Floating cards */

.tms-float {
    position: absolute;
    z-index: 3;
    padding: 11px;
    border: 1px solid #dfeceb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(0, 22, 26, 0.32);
}

.tms-float-alert {
    top: -30px;
    right: -16px;
    width: 184px;
}

.tms-float-rate {
    bottom: 2px;
    left: -20px;
    width: 166px;
}

.tms-float-head {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #133c42;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tms-float-head i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #efa83b;
    box-shadow: 0 0 0 3px rgba(239, 168, 59, 0.16);
}

.tms-float-head b {
    margin-left: auto;
    padding: 0 4px;
    border-radius: 3px;
    color: #b47c15;
    background: #fdf4e3;
    font-size: 7.5px;
}

.tms-float-head em {
    margin-left: auto;
    color: #07857a;
    font-size: 10px;
    font-style: normal;
}

.tms-float-alert ul {
    margin-top: 7px;
}

.tms-float-alert li {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-top: 1px dashed #eef4f3;
    color: #74898d;
    font-size: 7.8px;
}

.tms-float-alert li em {
    color: #c08a2c;
    font-size: 7.5px;
    font-style: normal;
}

.tms-float-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 36px;
    margin-top: 9px;
}

.tms-float-bars span {
    flex: 1;
    border-radius: 2px;
    background: linear-gradient(180deg, #7cf3dc, #10aa96);
    opacity: 0.85;
}

.tms-float-bars span:nth-child(1) { height: 38%; }
.tms-float-bars span:nth-child(2) { height: 58%; }
.tms-float-bars span:nth-child(3) { height: 46%; }
.tms-float-bars span:nth-child(4) { height: 72%; }
.tms-float-bars span:nth-child(5) { height: 88%; }
.tms-float-bars span:nth-child(6) { height: 66%; }
.tms-float-bars span:nth-child(7) { height: 100%; }

/* Hero stats */

.tms-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 54px;
    padding: 30px 0 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tms-hero-stats li {
    padding: 2px 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.tms-hero-stats li:first-child {
    padding-left: 0;
    border-left: 0;
}

.tms-hero-stats strong {
    display: block;
    color: #f6fffd;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tms-hero-stats strong small {
    color: var(--tms-mint);
    font-size: 16px;
}

.tms-hero-stats span {
    display: block;
    margin-top: 11px;
    color: rgba(230, 251, 247, 0.86);
    font-size: 13.5px;
    font-weight: 600;
}

.tms-hero-stats em {
    display: block;
    margin-top: 6px;
    color: rgba(207, 240, 236, 0.5);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.01em;
    word-break: keep-all;
}

/* --------------------------- Industry strip --------------------------- */

.tms-strip {
    padding: 20px 0;
    border-bottom: 1px solid #e7f0ee;
    background: #fff;
}

.tms-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    align-items: center;
}

.tms-strip p {
    color: #7f9599;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tms-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    align-items: center;
}

.tms-industries li {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    color: #10343b;
    font-size: 13.5px;
    font-weight: 600;
}

.tms-industries li:not(:last-child)::after {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c8dbd7;
}

.tms-strip-note {
    margin-left: auto;
    color: #7d9297;
    font-size: 12px;
}

/* ---------------------------- Section base ---------------------------- */

.tms-section {
    padding: 100px 0;
    background: var(--tms-paper);
}

.tms-section-tint {
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(15, 174, 154, 0.06), transparent 60%),
        var(--tms-tint);
}

.tms-sec-head {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.tms-sec-head-left {
    margin: 0 0 50px;
    text-align: left;
}

.tms-sec-head h2 {
    margin: 18px 0 14px;
    color: #082b32;
    font-size: clamp(28px, 3.1vw, 40px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.tms-sec-head p {
    color: var(--tms-muted);
    font-size: 15.5px;
    line-height: 1.85;
}

.tms-sec-head.is-light h2 {
    color: #f2fffc;
}

.tms-sec-head.is-light p {
    color: rgba(219, 246, 241, 0.62);
}

.tms-label {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--tms-emerald-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tms-label::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.tms-label.is-light {
    color: #7cf3dc;
}

/* -------------------------------- Gap -------------------------------- */

.tms-gap-head {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 44px;
}

.tms-gap-title h2 {
    margin: 18px 0 0;
    color: #082b32;
    font-size: clamp(28px, 3.1vw, 40px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.tms-gap-copy {
    max-width: 520px;
    justify-self: end;
}

.tms-gap-copy p {
    color: var(--tms-muted);
    font-size: 15px;
    line-height: 1.9;
}

.tms-gap-copy .tms-link {
    margin-top: 22px;
}

.tms-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 174, 154, 0.35);
    color: var(--tms-emerald-deep);
    font-size: 13.5px;
    font-weight: 700;
}

.tms-link em {
    font-style: normal;
    transition: transform 0.2s ease;
}

.tms-link:hover em {
    transform: translateX(4px);
}

.tms-issues {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
}

.tms-issues li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-top: 1px solid #e2ecea;
}

.tms-issue-num {
    padding-top: 4px;
    color: #14a08f;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tms-issues h3 {
    color: #0b2f36;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tms-issues p {
    margin-top: 8px;
    color: #60767c;
    font-size: 14px;
    line-height: 1.85;
}

.tms-issues em {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border: 1px solid #eadfc9;
    border-radius: 999px;
    color: #9a7736;
    background: #fbf6ec;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

/* ----------------------------- Capabilities ----------------------------- */

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

.tms-bento-feature {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    grid-row: span 2;
    gap: 14px;
    overflow: hidden;
    padding: 32px;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 88% 0%, rgba(124, 243, 220, 0.16), transparent 55%),
        linear-gradient(150deg, #062830 0%, #073a3b 100%);
    color: #eafffb;
}

.tms-bento-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    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: 46px 46px;
    -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
    mask-image: linear-gradient(200deg, #000, transparent 70%);
}

.tms-bento-feature h3 {
    color: #f4fffd;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: -0.02em;
}

.tms-bento-feature > p {
    color: rgba(219, 246, 241, 0.64);
    font-size: 13.5px;
    line-height: 1.8;
}

.tms-matrix {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
}

.tms-matrix-row {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, minmax(0, 1fr));
    align-items: center;
    padding: 7px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(226, 250, 246, 0.76);
    font-size: 10px;
    text-align: center;
}

.tms-matrix-row:first-child {
    border-top: 0;
}

.tms-matrix-row.is-head {
    color: rgba(219, 246, 241, 0.4);
    font-size: 8.5px;
    letter-spacing: 0.02em;
}

.tms-matrix-row > span:first-child {
    color: #e4fbf6;
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.tms-matrix-row.is-head > span:first-child,
.tms-matrix-row.is-head > span {
    color: rgba(219, 246, 241, 0.4);
    font-weight: 500;
}

.tms-matrix-row i {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 8.5px;
    font-style: normal;
    line-height: 1;
}

.tms-matrix-row i.is-ok {
    color: #93f8e6;
    background: rgba(124, 243, 220, 0.14);
}

.tms-matrix-row i.is-warn {
    color: #f3c274;
    background: rgba(240, 183, 92, 0.16);
}

.tms-matrix-row i.is-off {
    color: rgba(255, 255, 255, 0.28);
    background: transparent;
}

.tms-matrix-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.tms-matrix-legend li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: rgba(219, 246, 241, 0.45);
    font-size: 10px;
}

.tms-matrix-legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tms-matrix-legend i.is-ok { background: #7cf3dc; }
.tms-matrix-legend i.is-warn { background: #f0b75c; }
.tms-matrix-legend i.is-off { background: rgba(255, 255, 255, 0.24); }

.tms-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #e3edec;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tms-card:hover {
    border-color: #cfe7e2;
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(10, 54, 58, 0.1);
}

.tms-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 11px;
    color: #0a8f80;
    background: #e9f8f4;
}

.tms-card-icon svg {
    width: 20px;
    height: 20px;
}

.tms-card h3 {
    color: #0b2e35;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tms-card > p {
    margin-top: 9px;
    color: #647a80;
    font-size: 13px;
    line-height: 1.8;
}

.tms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
}

.tms-tags li {
    padding: 3px 8px;
    border: 1px solid #e5efee;
    border-radius: 999px;
    color: #5d7a7d;
    background: #f3f8f7;
    font-size: 10.5px;
}

.tms-card-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-column: span 4;
    gap: 44px;
    align-items: center;
    padding: 28px 32px;
}

.tms-card-wide h3 {
    margin: 12px 0 8px;
    font-size: 20px;
}

.tms-wide-chart {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.tms-meter {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: center;
}

.tms-meter span {
    color: #5f767c;
    font-size: 12px;
}

.tms-meter i {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf3f1;
}

.tms-meter b {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0fae9a, #7cf3dc);
}

.tms-meter b.is-96 { width: 96%; }
.tms-meter b.is-92 { width: 92%; }
.tms-meter b.is-99 { width: 99%; }

.tms-meter em {
    color: #0a8f80;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 800;
    text-align: right;
}

/* ------------------------------ Explorer ------------------------------ */

.tms-explorer {
    position: relative;
    overflow: hidden;
    color: #effffb;
    background:
        radial-gradient(90% 80% at 88% 0%, rgba(15, 174, 154, 0.16), transparent 55%),
        linear-gradient(160deg, #04171c 0%, #06262c 100%);
}

.tms-explorer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(160, 244, 231, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 244, 231, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000, transparent 80%);
    mask-image: radial-gradient(80% 70% at 50% 0%, #000, transparent 80%);
    pointer-events: none;
}

.tms-chainstrip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 52px;
}

.tms-chainstrip li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
}

.tms-chainstrip li:not(:last-child)::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: -11px;
    z-index: 2;
    color: rgba(124, 243, 220, 0.5);
    font-size: 15px;
    line-height: 1;
    transform: translateY(-50%);
}

.tms-chainstrip b {
    color: #e9fffb;
    font-size: 12.5px;
    font-weight: 700;
}

.tms-chainstrip span {
    color: rgba(211, 243, 238, 0.5);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.tms-chainstrip li.is-accent {
    border-color: rgba(124, 243, 220, 0.34);
    background: rgba(15, 174, 154, 0.13);
    box-shadow: inset 0 0 0 1px rgba(124, 243, 220, 0.06);
}

.tms-chainstrip li.is-accent b {
    color: #8ff8e5;
}

.tms-explorer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
}

.tms-modules {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tms-module {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(226, 248, 244, 0.6);
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tms-module > span {
    width: 20px;
    flex: none;
    color: rgba(124, 243, 220, 0.45);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.tms-module > b {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.tms-module > em {
    margin-left: auto;
    flex: none;
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(226, 248, 244, 0.5);
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.tms-module > em.is-auto {
    border-color: rgba(240, 183, 92, 0.3);
    color: #e8b566;
    background: rgba(240, 183, 92, 0.08);
}

.tms-module:hover {
    color: #e2fbf6;
    background: rgba(255, 255, 255, 0.04);
}

.tms-module.is-active {
    border-color: rgba(124, 243, 220, 0.24);
    color: #f2fffc;
    background: rgba(124, 243, 220, 0.07);
}

.tms-module.is-active > span {
    color: #7cf3dc;
}

.tms-module.is-active > b {
    font-weight: 700;
}

.tms-module.is-active > em {
    border-color: rgba(124, 243, 220, 0.4);
    color: #9ffbeb;
}

.tms-panels {
    min-width: 0;
}

.tms-panel {
    display: none;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(11, 44, 48, 0.55);
    backdrop-filter: blur(8px);
}

.tms-panel.is-active {
    display: block;
    animation: tmsFade 0.35s ease both;
}

.tms-panel-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.tms-panel-head h3 {
    color: #f4fffd;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.tms-panel-head > span {
    flex: none;
    padding: 3px 9px;
    border: 1px solid rgba(124, 243, 220, 0.3);
    border-radius: 999px;
    color: #9ffbeb;
    background: rgba(124, 243, 220, 0.07);
    font-size: 10px;
    font-weight: 600;
}

.tms-panel-head > span.is-auto {
    border-color: rgba(240, 183, 92, 0.32);
    color: #e8b566;
    background: rgba(240, 183, 92, 0.08);
}

.tms-panel > p {
    margin-top: 14px;
    color: rgba(219, 246, 241, 0.66);
    font-size: 13.5px;
    line-height: 1.9;
}

.tms-panel-points {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
}

.tms-panel-points li {
    position: relative;
    padding-left: 20px;
    color: rgba(226, 250, 246, 0.82);
    font-size: 12.5px;
    line-height: 1.7;
}

.tms-panel-points li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 0;
    color: #7cf3dc;
    font-size: 10px;
}

.tms-panel-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
}

.tms-panel-links div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tms-panel-links span {
    flex: none;
    color: rgba(219, 246, 241, 0.4);
    font-size: 10.5px;
    letter-spacing: 0.03em;
}

.tms-panel-links b {
    overflow: hidden;
    padding: 3px 10px;
    border: 1px dashed rgba(124, 243, 220, 0.28);
    border-radius: 999px;
    color: #a9f4e7;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tms-panel-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(219, 246, 241, 0.52);
    font-size: 10.5px;
}

.tms-panel-foot .tms-switch {
    width: 24px;
    height: 13px;
}

.tms-panel-foot .tms-switch::after {
    width: 9px;
    height: 9px;
}

.tms-panel-foot span {
    margin-right: 10px;
}

.tms-panel-foot em {
    margin-left: auto;
    color: rgba(124, 243, 220, 0.62);
    font-size: 10px;
    font-style: normal;
}

/* ----------------------------- Compliance ----------------------------- */

.tms-compliance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.tms-compliance-copy h2 {
    margin: 18px 0 20px;
    color: #082b32;
    font-size: clamp(28px, 3.1vw, 40px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.tms-compliance-copy > p {
    color: var(--tms-muted);
    font-size: 15px;
    line-height: 1.9;
}

.tms-checks {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.tms-checks li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #e2ecea;
}

.tms-checks li:last-child {
    border-bottom: 1px solid #e2ecea;
}

.tms-checks i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #bfe8e0;
    border-radius: 50%;
    color: #0a8f80;
    background: #eefaf6;
    font-size: 9px;
    font-style: normal;
}

.tms-checks b {
    display: block;
    color: #0b2f36;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
}

.tms-checks span {
    display: block;
    margin-top: 4px;
    color: #8fa2a6;
    font-size: 11px;
}

.tms-evidence {
    overflow: hidden;
    border: 1px solid #dbeae7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 34px 70px rgba(9, 47, 50, 0.11);
}

.tms-evidence header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 22px;
    color: #effffb;
    background: linear-gradient(135deg, #072a30, #0a4a47);
}

.tms-evidence-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(124, 243, 220, 0.3);
    border-radius: 10px;
    color: #7cf3dc;
    background: rgba(124, 243, 220, 0.07);
}

.tms-evidence-icon svg {
    width: 20px;
    height: 20px;
}

.tms-evidence header b {
    display: block;
    color: #f2fffc;
    font-size: 14px;
    font-weight: 700;
}

.tms-evidence header span {
    color: rgba(219, 246, 241, 0.42);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tms-evidence header em {
    margin-left: auto;
    padding: 3px 9px;
    border: 1px solid rgba(124, 243, 220, 0.3);
    border-radius: 999px;
    color: #7cf3dc;
    background: rgba(124, 243, 220, 0.08);
    font-size: 9.5px;
    font-style: normal;
}

.tms-evidence ol {
    padding: 8px 22px;
}

.tms-evidence li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #eaf1ef;
}

.tms-evidence li:last-child {
    border-bottom: 0;
}

.tms-evidence li > span {
    color: #14a08f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.tms-evidence li b {
    display: block;
    color: #14373d;
    font-size: 13px;
    font-weight: 700;
}

.tms-evidence li p {
    margin-top: 3px;
    color: #8ba0a3;
    font-size: 11.5px;
    line-height: 1.6;
}

.tms-evidence li i {
    padding: 2px 8px;
    border: 1px solid #cdece3;
    border-radius: 999px;
    color: #0c8a7b;
    background: #edf9f5;
    font-size: 9.5px;
    font-style: normal;
    white-space: nowrap;
}

.tms-evidence footer {
    padding: 13px 22px;
    border-top: 1px solid #edf4f2;
    color: #7d9297;
    background: #f7fbfa;
    font-size: 10.5px;
}

/* ---------------------------- Implementation ---------------------------- */

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

.tms-steps li {
    position: relative;
    padding: 26px;
    border: 1px solid #e3edec;
    border-radius: 14px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tms-steps li:hover {
    border-color: #cfe7e2;
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(10, 54, 58, 0.09);
}

.tms-steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 30px;
    right: -15px;
    color: #c3dad5;
    font-size: 14px;
}

.tms-step-week {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid #cfe9e3;
    border-radius: 999px;
    color: #0d8a7c;
    background: #eaf8f4;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tms-steps h3 {
    margin: 14px 0 8px;
    color: #0b2f36;
    font-size: 16.5px;
    font-weight: 700;
}

.tms-steps p {
    color: #647a80;
    font-size: 13px;
    line-height: 1.8;
}

.tms-implement-note {
    margin-top: 30px;
    color: #7a8f93;
    font-size: 12px;
    text-align: center;
}

/* --------------------------------- FAQ --------------------------------- */

.tms-faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.tms-faq-list details {
    border-bottom: 1px solid #dce9e6;
}

.tms-faq-list details:first-child {
    border-top: 1px solid #dce9e6;
}

.tms-faq-list summary {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px;
    color: #10343b;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tms-faq-list summary::-webkit-details-marker {
    display: none;
}

.tms-faq-list summary i {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border: 1px solid #cbdfd9;
    border-radius: 50%;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tms-faq-list summary i::before,
.tms-faq-list summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: #0a8f80;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.tms-faq-list summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tms-faq-list details[open] summary {
    color: #0a8a7c;
}

.tms-faq-list details[open] summary i {
    border-color: #0fae9a;
    background: #eaf8f4;
    transform: rotate(180deg);
}

.tms-faq-list details[open] summary i::after {
    opacity: 0;
}

.tms-faq-list p {
    max-width: 760px;
    padding: 0 4px 22px;
    color: #60767c;
    font-size: 13.5px;
    line-height: 1.9;
}

/* --------------------------- Reveal animation --------------------------- */

html.tms-js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.tms-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

html.tms-js .tms-bento > [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
html.tms-js .tms-bento > [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
html.tms-js .tms-bento > [data-reveal]:nth-child(4) { transition-delay: 0.18s; }
html.tms-js .tms-bento > [data-reveal]:nth-child(5) { transition-delay: 0.24s; }
html.tms-js .tms-bento > [data-reveal]:nth-child(6) { transition-delay: 0.3s; }

@keyframes tmsFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes tmsPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(124, 243, 220, 0.14);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(124, 243, 220, 0.05);
    }
}

/* ------------------------- Modal / back to top ------------------------- */

.tms-page .modal,
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 22, 26, 0.66);
    backdrop-filter: blur(4px);
}

.modal.is-active {
    display: flex;
}

.modal-dialog {
    position: relative;
    width: min(400px, 100%);
    padding: 30px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 34px 80px rgba(4, 22, 28, 0.34);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #5d7179;
    background: #eef5f6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-header h3 {
    margin: 6px 0 20px;
    color: #073f4a;
    font-size: 20px;
}

.modal-qr img {
    width: min(250px, 86%);
    height: auto;
}

.modal-qr p {
    margin: 18px 0 0;
    color: #61757e;
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #04302b;
    background: #7cf3dc;
    box-shadow: 0 14px 30px rgba(7, 55, 64, 0.24);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 1180px) {
    .tms-hero-grid {
        gap: 34px;
    }

    .tms-hero h1 {
        font-size: clamp(36px, 4.6vw, 50px);
    }

    .tms-float-alert {
        right: -8px;
    }

    .tms-float-rate {
        left: -10px;
    }
}

@media (max-width: 1080px) {
    .tms-hero {
        padding-top: 96px;
    }

    .tms-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .tms-hero-copy {
        max-width: 660px;
    }

    .tms-hero-visual {
        width: min(660px, 100%);
        margin: 22px auto 0;
    }

    .tms-hero-stats {
        margin-top: 44px;
    }

    .tms-compliance {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .tms-gap-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .tms-gap-copy {
        justify-self: start;
        max-width: 680px;
    }

    .tms-explorer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

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

@media (max-width: 980px) {
    .tms-section {
        padding: 76px 0;
    }

    .tms-issues {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .tms-bento-feature {
        grid-column: span 2;
        grid-row: auto;
        min-height: 460px;
    }

    .tms-card-wide {
        grid-column: span 2;
    }

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

    .tms-steps li:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .tms-container {
        width: calc(100% - 32px);
    }

    .tms-hero {
        padding-top: 84px;
    }

    .tms-crumbs {
        margin-bottom: 34px;
    }

    .tms-hero h1 {
        font-size: clamp(31px, 8.4vw, 40px);
    }

    .tms-lead {
        font-size: 15.5px;
    }

    .tms-hero-notes {
        gap: 10px 16px;
    }

    .tms-float {
        display: none;
    }

    .tms-app-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tms-app-side {
        display: none;
    }

    .tms-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 0;
        padding-bottom: 34px;
    }

    .tms-hero-stats li {
        padding: 0 18px;
    }

    .tms-hero-stats li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .tms-strip-inner {
        gap: 10px 0;
    }

    .tms-strip p {
        width: 100%;
    }

    .tms-strip-note {
        width: 100%;
        margin-left: 0;
    }

    .tms-section {
        padding: 60px 0;
    }

    .tms-sec-head {
        margin-bottom: 36px;
    }

    .tms-sec-head h2,
    .tms-gap-title h2,
    .tms-compliance-copy h2 {
        font-size: clamp(25px, 6.4vw, 32px);
    }

    .tms-issues {
        grid-template-columns: minmax(0, 1fr);
    }

    .tms-issues h3 {
        font-size: 17px;
    }

    .tms-bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .tms-bento-feature,
    .tms-card-wide {
        grid-column: span 1;
    }

    .tms-bento-feature {
        min-height: 0;
        padding: 26px;
    }

    .tms-bento-feature h3 {
        font-size: 22px;
    }

    .tms-card-wide {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 24px;
    }

    .tms-modules {
        grid-template-columns: minmax(0, 1fr);
    }

    .tms-panel {
        padding: 24px;
    }

    .tms-chainstrip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 32px;
    }

    .tms-chainstrip li:not(:last-child)::after {
        display: none;
    }

    .tms-evidence header {
        flex-wrap: wrap;
    }

    .tms-evidence header em {
        margin-left: 0;
    }

    .tms-faq-list summary {
        font-size: 14.5px;
    }

    .tms-faq-list p {
        font-size: 13px;
    }

    .tms-app-tools span {
        display: none;
    }

    .tms-mcard {
        min-height: 118px;
    }
}

@media (max-width: 560px) {
    .tms-app {
        padding: 8px;
        border-radius: 14px;
    }

    .tms-app-bar {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .tms-app-live {
        display: none;
    }

    .tms-app-cards {
        grid-template-columns: minmax(0, 1fr);
    }


    .tms-app-main {
        padding: 10px;
    }

    .tms-hero-actions .tms-btn {
        flex: 1;
        min-width: 0;
        padding: 0 18px;
    }

    .tms-hero-stats strong {
        font-size: 28px;
    }

    .tms-hero-stats em {
        font-size: 10px;
    }

    .tms-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .modal-dialog {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tms-page *,
    .tms-page *::before,
    .tms-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    html.tms-js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
