@font-face {
    font-family: "PoppinsLocal";
    src: url("./common/banner/font/poppins/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg: #f3f8fb;
    --surface: #ffffff;
    --surface-soft: #edf5fb;
    --ink: #17324d;
    --muted: #557086;
    --line: #d7e4ee;
    --primary: #0f5c78;
    --primary-deep: #0c4662;
    --accent: #d95f4f;
    --accent-soft: #fce6df;
    --success-soft: #e6f7ef;
    --shadow: 0 18px 40px rgba(12, 70, 98, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PoppinsLocal", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(13, 92, 120, 0.10), transparent 32%),
        linear-gradient(180deg, #f8fbfd 0%, var(--bg) 45%, #eef4f8 100%);
    min-height: 100vh;
}

a,
a:hover {
    color: var(--primary);
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(10, 39, 62, 0.88);
    box-shadow: 0 6px 20px rgba(10, 39, 62, 0.18);
}

.site-navbar {
    padding: 0.8rem 0;
}

.site-navbar .navbar-toggler {
    position: relative;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
}

.site-navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.site-navbar .navbar-toggler .menu-icon-bar {
    position: absolute;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-navbar .navbar-toggler .menu-icon-bar:first-child {
    transform: translateY(-8px);
}

.site-navbar .navbar-toggler .menu-icon-bar:last-child {
    transform: translateY(8px);
}

.site-navbar .navbar-toggler:not(.collapsed) .menu-icon-bar:first-child {
    transform: rotate(45deg);
}

.site-navbar .navbar-toggler:not(.collapsed) .menu-icon-bar:nth-child(2) {
    opacity: 0;
}

.site-navbar .navbar-toggler:not(.collapsed) .menu-icon-bar:last-child {
    transform: rotate(-45deg);
}

.brand-mark span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-title {
    margin: 0;
    color: #fff;
    font-family: "PoppinsLocal", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    margin-left: 0.6rem;
    font-size: 0.95rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: #fff !important;
}

.site-main {
    padding: 2rem 0 3.5rem;
}

.hero-shell {
    padding: 3.5rem 0 2.2rem;
}

.hero-panel,
.app-card,
.metric-card,
.section-card,
.summary-card,
.figure-card,
.note-card,
.result-kpi,
.guide-step {
    background: var(--surface);
    border: 1px solid rgba(215, 228, 238, 0.9);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.hero-panel {
    overflow: hidden;
    position: relative;
    padding: 2.2rem;
    background:
        linear-gradient(135deg, rgba(15, 92, 120, 0.95), rgba(12, 70, 98, 0.92)),
        linear-gradient(180deg, #0f5c78 0%, #0c4662 100%);
    color: #fff;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-kicker {
    background: var(--surface-soft);
    color: var(--primary-deep);
}

.hero-title {
    margin-top: 1rem;
    font-size: 2.5rem;
    line-height: 1.14;
    font-weight: 600;
}

.hero-copy,
.section-copy,
.muted-copy {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.section-copy,
.muted-copy {
    color: var(--muted);
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.btn-app-primary,
.btn-app-secondary,
.btn-app-light {
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-app-primary {
    background: var(--accent);
    color: #fff;
}

.btn-app-primary:hover {
    background: #c44e40;
    color: #fff;
}

.btn-app-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

.btn-app-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-app-light {
    background: var(--surface-soft);
    color: var(--primary-deep);
    border-color: var(--line);
}

.btn-app-light:hover {
    background: #dfeef7;
    color: var(--primary-deep);
}

.hero-figure {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.hero-figure img,
.figure-card img,
.figure-preview img {
    width: 100%;
    border-radius: var(--radius-md);
}

.metric-grid,
.card-grid,
.kpi-grid,
.step-grid {
    display: grid;
    gap: 1rem;
}

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

.card-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.metric-card,
.app-card,
.summary-card,
.result-kpi,
.guide-step,
.section-card,
.figure-card,
.note-card {
    padding: 1.35rem;
}

.metric-label,
.mini-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    color: var(--muted);
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-deep);
}

.metric-note {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-title,
.card-title,
.page-title {
    margin: 0.65rem 0 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.15rem;
}

.page-title {
    font-size: 2rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.app-card p:last-child,
.section-card p:last-child,
.figure-card p:last-child,
.note-card p:last-child {
    margin-bottom: 0;
}

.content-stack > * + *,
.page-stack > * + * {
    margin-top: 1.5rem;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(215, 228, 238, 0.95);
    border-radius: 999px;
    padding: 0.8rem 1rem;
}

.form-shell textarea.form-control,
.form-shell input.form-control,
.form-shell .input input {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: none;
}

.form-shell textarea.form-control:focus,
.form-shell input.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 92, 120, 0.12);
}

.file-upload-inner.ts-forms .input {
    position: relative;
}

.file-upload-inner.ts-forms input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0.7rem 1rem 0.7rem 5.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-upload-inner.ts-forms input[type="text"]:hover,
.file-upload-inner.ts-forms input[type="text"]:focus,
.file-upload-inner.ts-forms .file-button:hover + input {
    border-color: rgba(15, 92, 120, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(15, 92, 120, 0.10);
}

.file-upload-inner.ts-forms .file-button {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 78px;
    height: 36px;
    line-height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f08a62 0%, #d95f4f 100%);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    cursor: pointer;
}

.file-upload-inner.ts-forms .file-button input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.mode-chip,
.tag-chip,
.score-chip,
.prediction-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
}

.mode-chip {
    background: var(--surface-soft);
    color: var(--primary-deep);
    margin-right: 0.45rem;
    margin-bottom: 0.45rem;
}

.tag-chip {
    background: var(--accent-soft);
    color: #8f3d31;
}

.score-chip {
    background: var(--surface-soft);
    color: var(--primary-deep);
}

.prediction-chip {
    background: var(--success-soft);
    color: #177245;
}

.prediction-chip.negative {
    background: #fdeaea;
    color: #a43e3e;
}

.sequence-window {
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    word-break: break-all;
    line-height: 1.8;
}

.sequence-window .center-aa {
    display: inline-block;
    min-width: 1.15rem;
    padding: 0 0.2rem;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.summary-band {
    margin-bottom: 1rem;
}

.result-kpi .kpi-value {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--primary-deep);
}

.table-shell {
    overflow: hidden;
}

.table thead th {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(15, 92, 120, 0.05);
}

.figure-preview {
    background: linear-gradient(180deg, #f6fafc 0%, #edf4f9 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.chart-frame {
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fb 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.chart-surface {
    height: 360px;
}

.top-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.top-list .score-chip {
    white-space: normal;
    text-align: left;
    line-height: 1.45;
    max-width: 16rem;
}

.top-list li:last-child {
    border-bottom: 0;
}

.callout {
    border-left: 4px solid var(--accent);
    background: #fff7f4;
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    color: #8c4d42;
}

.app-footer {
    background: #102638;
    color: rgba(255, 255, 255, 0.82);
    padding: 2.5rem 0;
}

.app-footer h6 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.app-footer p,
.app-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.app-footer a:hover {
    color: #fff;
}

.footer-grid > div + div {
    margin-top: 1rem;
}

.load {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.load hr {
    position: absolute;
    width: 40%;
    height: 40%;
    margin: 0;
    border: 0;
    border-radius: 50%;
    animation: loader-spin 2s ease infinite;
}

.load :first-child {
    background: #19a68c;
    animation-delay: -1.5s;
}

.load :nth-child(2) {
    background: #f63d3a;
    animation-delay: -1s;
}

.load :nth-child(3) {
    background: #fda543;
    animation-delay: -0.5s;
}

.load :last-child {
    background: #193b48;
}

.loading-copy {
    color: #fff;
    font-weight: 600;
}

@keyframes loader-spin {
    0%,
    100% {
        transform: translate(0);
    }
    25% {
        transform: translate(160%);
    }
    50% {
        transform: translate(160%, 160%);
    }
    75% {
        transform: translate(0, 160%);
    }
}

@media (min-width: 768px) {
    .footer-grid > div + div {
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .metric-grid,
    .card-grid.three-up,
    .card-grid.two-up,
    .kpi-grid,
    .step-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 2rem;
    }

    .site-navbar .nav-link {
        margin-left: 0;
    }
}
