﻿:root {
    --bg: #f6f7f2;
    --paper: #ffffff;
    --ink: #0f1720;
    --muted: #4f5b66;
    --brand: #006d77;
    --brand-2: #d97706;
    --line: #d8dee5;
    --shadow: 0 30px 80px rgba(15, 23, 32, 0.16);
    --panel-shadow: 0 16px 42px rgba(15, 23, 32, 0.1);
    --section-space: clamp(2.1rem, 5.2vw, 4.4rem);
    --section-space-tight: clamp(1.4rem, 3.4vw, 2.5rem);
    --copy-measure: 62ch;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 8%, rgba(253, 186, 116, 0.24), transparent 42%),
        radial-gradient(circle at 92% 14%, rgba(45, 212, 191, 0.18), transparent 36%),
        linear-gradient(180deg, #fafbf8 0%, #eef2ee 100%);
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 32, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 32, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7), transparent 78%);
    z-index: -1;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(26px);
    z-index: -1;
    opacity: 0.5;
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: #ffd9b5;
    top: -80px;
    right: -80px;
}

.orb-2 {
    width: 280px;
    height: 280px;
    background: #99f6e4;
    bottom: -90px;
    left: -80px;
    animation-delay: -4s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -16px, 0) scale(1.04);
    }
}

.topbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(15, 23, 32, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.05rem;
    z-index: 10;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(17, 58, 74, 0.25), transparent);
    pointer-events: none;
}

.topbar nav {
    display: none;
    gap: 1rem;
}

.topbar nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.topbar a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.brand {
    font-family: "Syne", sans-serif;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(145deg, #005b63, #0f766e);
    color: #ecfeff;
    box-shadow: 0 10px 22px rgba(0, 109, 119, 0.36);
}

.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jp-icon {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
    stroke: none;
    flex: 0 0 auto;
}

main {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.hero-premium {
    display: grid;
    gap: 1.2rem;
}

.hero-copy {
    min-width: 0;
}

.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    gap: 0.85rem;
    align-items: start;
    transform: translate3d(0, 0, 0);
    transition: transform 280ms ease-out;
}

.hero-visual-card {
    border: 1px solid #cbd7e2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(15, 23, 32, 0.14);
    overflow: hidden;
    position: relative;
}

.hero-visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.26), transparent 38%);
    pointer-events: none;
}

.hero-visual-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-main-shot {
    min-height: 300px;
}

.hero-main-shot,
.hero-sub-shot {
    will-change: transform;
    transition: transform 240ms ease-out;
}

.hero-sub-shot {
    min-height: 196px;
}

.hero-kpi {
    grid-column: 2;
    border: 1px solid #c5d8e6;
    border-radius: 16px;
    background: linear-gradient(145deg, #eef9ff, #e5f5f7);
    padding: 0.9rem;
    box-shadow: 0 12px 24px rgba(15, 23, 32, 0.1);
}

.hero-kpi p {
    margin: 0;
    font-weight: 700;
    color: #295164;
}

.hero-kpi strong {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 2rem;
    margin: 0.15rem 0 0.2rem;
    color: #0f4f63;
}

.hero-kpi span {
    font-size: 0.86rem;
    color: #406273;
}

.hero-badge {
    grid-column: 1 / span 2;
    border: 1px solid #c9dbe8;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 255, 0.92));
    padding: 0.78rem 0.9rem;
    box-shadow: 0 14px 28px rgba(16, 34, 54, 0.11);
}

.hero-badge p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    color: #2a5a73;
}

.hero-badge strong {
    display: block;
    margin-top: 0.32rem;
    font-family: "Fraunces", "Syne", serif;
    font-size: 1.05rem;
    color: #103b55;
}

.hero-badge span {
    display: block;
    margin-top: 0.2rem;
    color: #4b667c;
    font-size: 0.84rem;
}

.stat-ribbon {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.stat-ribbon article {
    border: 1px solid #d1dce6;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.95rem;
    position: relative;
    overflow: hidden;
}

.stat-ribbon article::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.24), transparent 45%);
    pointer-events: none;
}

.stat-ribbon strong {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 1.6rem;
    color: #0f4e60;
}

.stat-ribbon span {
    color: #4d5f70;
    font-size: 0.9rem;
}

.showcase-shell {
    margin-top: 0.2rem;
}

.showcase-head p {
    color: #4c5d6c;
    margin-top: 0;
}

.showcase-grid {
    display: grid;
    gap: 1.05rem;
    margin-top: 1rem;
}

.showcase-card {
    border: 1px solid #d3dde7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 32, 0.08);
    overflow: hidden;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    position: relative;
}

.showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 36%);
    pointer-events: none;
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: #b7cad9;
    box-shadow: 0 20px 40px rgba(15, 23, 32, 0.14);
}

.showcase-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.showcase-card h3,
.showcase-card p {
    padding: 0 1rem;
}

.showcase-card h3 {
    margin: 0.8rem 0 0.35rem;
}

.showcase-card p {
    margin: 0 0 1rem;
    color: #4d5f6e;
}

.testimonials-shell {
    border-top: 1px solid #d5dce3;
    margin-top: 0.55rem;
    padding-top: var(--section-space-tight);
}

.testimonials-head p {
    margin-top: 0;
    color: #52606d;
}

.testimonials-grid {
    display: grid;
    gap: 1rem;
}

.testimonials-grid article {
    border: 1px solid #d2dce6;
    border-radius: 16px;
    background: linear-gradient(170deg, #ffffff, #f3f8fc);
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 32, 0.08);
    position: relative;
    overflow: hidden;
}

.testimonials-grid article::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.34), transparent 40%);
    pointer-events: none;
}

.testimonials-grid p {
    margin: 0 0 0.75rem;
    color: #2b3947;
    font-size: 1rem;
}

.testimonials-grid strong {
    color: #0f4f63;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero {
    padding: clamp(4.4rem, 8.6vw, 6.4rem) 0 var(--section-space-tight);
}

.eyebrow {
    color: #0c4a54;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 109, 119, 0.12);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
}

h1,
h2,
h3,
h4 {
    font-family: "Fraunces", "Syne", serif;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    max-width: 15ch;
    background: linear-gradient(120deg, #0f1720, #114a56 55%, #0b5560);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-line {
    display: block;
}

.hero-line:last-child {
    max-width: 13.5ch;
}

h2 {
    font-size: clamp(1.5rem, 3.1vw, 2.25rem);
    line-height: 1.1;
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

h3 {
    font-size: clamp(1.02rem, 1.8vw, 1.36rem);
    line-height: 1.22;
    margin-bottom: 0.45rem;
}

.btn-theme {
    min-width: 112px;
    justify-content: center;
}

.reveal-block {
    opacity: 0;
    transform: translateY(26px) scale(0.99);
    transition: opacity 760ms cubic-bezier(0.2, 0.65, 0.2, 1), transform 760ms cubic-bezier(0.2, 0.65, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-block.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.marketing-dark {
    background:
        radial-gradient(circle at 14% 10%, rgba(52, 211, 153, 0.16), transparent 42%),
        radial-gradient(circle at 86% 14%, rgba(125, 211, 252, 0.16), transparent 38%),
        linear-gradient(180deg, #0b1220 0%, #0f1a2b 100%);
    color: #e5edf8;
}

body.marketing-dark .topbar {
    background: rgba(7, 12, 20, 0.72);
    border-bottom-color: rgba(194, 218, 255, 0.16);
}

body.marketing-dark .topbar::after {
    background: linear-gradient(90deg, transparent, rgba(143, 193, 240, 0.34), transparent);
}

body.marketing-dark .topbar a,
body.marketing-dark .brand,
body.marketing-dark .btn-theme {
    color: #ddedff;
}

body.marketing-dark .brand-mark {
    background: linear-gradient(145deg, #0f4a63, #125b7a);
}

body.marketing-dark .hero,
body.marketing-dark .section:not(#portal) {
    color: #e6effc;
}

body.marketing-dark .lead,
body.marketing-dark .showcase-head p,
body.marketing-dark .testimonials-head p,
body.marketing-dark .integration-head p,
body.marketing-dark .stat-ribbon span,
body.marketing-dark .showcase-card p,
body.marketing-dark .testimonials-grid p {
    color: #c4d4e9;
}

body.marketing-dark .hero-cards article,
body.marketing-dark .showcase-card,
body.marketing-dark .stat-ribbon article,
body.marketing-dark .testimonials-grid article,
body.marketing-dark .integration-shell,
body.marketing-dark .integration-card,
body.marketing-dark .steps article {
    background: linear-gradient(170deg, rgba(14, 26, 43, 0.84), rgba(16, 34, 58, 0.78));
    border-color: rgba(159, 190, 231, 0.24);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

body.marketing-dark .hero-visual-card::before,
body.marketing-dark .showcase-card::before,
body.marketing-dark .stat-ribbon article::before,
body.marketing-dark .testimonials-grid article::before {
    background: linear-gradient(170deg, rgba(184, 215, 255, 0.1), transparent 42%);
}

body.marketing-dark .section-dark {
    background: linear-gradient(145deg, #081220, #0d2439 45%, #10324a);
}

body.marketing-dark .card-icon {
    background: linear-gradient(150deg, rgba(56, 189, 248, 0.26), rgba(20, 184, 166, 0.24));
    color: #c8f9ff;
}

body.marketing-dark .hero-kpi {
    background: linear-gradient(145deg, rgba(18, 43, 69, 0.9), rgba(15, 59, 81, 0.85));
    border-color: rgba(132, 197, 233, 0.32);
}

body.marketing-dark .hero-badge {
    background: linear-gradient(160deg, rgba(16, 36, 59, 0.94), rgba(18, 49, 75, 0.88));
    border-color: rgba(134, 178, 221, 0.34);
}

body.marketing-dark .hero-badge p,
body.marketing-dark .hero-badge strong,
body.marketing-dark .hero-badge span {
    color: #d6e8fb;
}

body.marketing-dark .hero-kpi strong,
body.marketing-dark .stat-ribbon strong,
body.marketing-dark h1,
body.marketing-dark h2,
body.marketing-dark h3 {
    color: #f0f7ff;
    background: none;
    -webkit-text-fill-color: initial;
}

body.marketing-dark .btn-ghost {
    border-color: rgba(156, 190, 228, 0.36);
    background: rgba(17, 34, 58, 0.7);
}

.lead {
    max-width: var(--copy-measure);
    color: var(--muted);
    font-size: clamp(1.04rem, 1.55vw, 1.19rem);
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0 2rem;
}

.hero-ribbon {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hero-ribbon span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #21414a;
}

.hero-cards {
    display: grid;
    gap: 1rem;
}

.hero-cards article,
.panel,
.section-dark,
.steps article {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--panel-shadow);
}

.hero-cards article {
    padding: 1.2rem;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hero-cards article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(15, 23, 32, 0.15);
    border-color: #bdd1df;
}

.card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(150deg, #ddfbf8, #d1f1fb);
    color: #0e5a65;
    margin-bottom: 0.65rem;
}

.card-icon.dark {
    background: rgba(255, 255, 255, 0.22);
    color: #f7fffe;
}

.section {
    padding: var(--section-space) 0;
}

.section>h2,
.showcase-head,
.testimonials-head,
.integration-head {
    max-width: 72ch;
}

.section>h2+p,
.showcase-head p,
.testimonials-head p,
.integration-head p,
.portal-intro p,
.showcase-card p,
.testimonials-grid p {
    line-height: 1.62;
}

.section-dark {
    background: linear-gradient(145deg, #0f1f2e, #113646 45%, #0e4c4d);
    color: #f2f7ef;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section-dark p {
    color: #d7e9ec;
}

.grid-3 {
    display: grid;
    gap: 1rem;
}

.steps {
    display: grid;
    gap: 1.05rem;
}

.steps article {
    padding: 1.15rem;
}

.step-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e4f7fb;
    color: #0d5d69;
    margin-bottom: 0.65rem;
}

.steps span {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f5f7;
    color: #0d5864;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.integration-shell {
    border-radius: 20px;
    border: 1px solid #d5e4d4;
    background: linear-gradient(165deg, #ffffff, #f2f8f8);
    padding: 1.3rem;
    box-shadow: 0 18px 36px rgba(15, 23, 32, 0.1);
}

.integration-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    margin-bottom: 0.38rem;
}

.integration-head p {
    margin-top: 0;
    color: #4b6554;
}

.integration-grid {
    display: grid;
    gap: 0.95rem;
    margin-top: 0.95rem;
}

.integration-card {
    border: 1px solid #d8e6d9;
    border-radius: 16px;
    background: #ffffff;
    padding: 1rem;
}

.integration-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.integration-card pre {
    margin: 0;
    border-radius: 10px;
    border: 1px solid #17333e;
    background: #0d1f2d;
    color: #c8f8ff;
    padding: 0.78rem;
    overflow: auto;
    font-size: 0.82rem;
    line-height: 1.45;
}

.integration-card code {
    background: transparent;
    color: inherit;
    border-radius: 0;
    display: inline;
    padding: 0;
}

.integration-note {
    margin: 0.62rem 0 0;
    color: #456050;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.portal-shell {
    margin-bottom: 3rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(242, 250, 251, 0.7));
    padding: clamp(1rem, 2.2vw, 1.45rem);
    border: 1px solid #dce7db;
    box-shadow: 0 18px 38px rgba(15, 23, 32, 0.09);
}

.portal-intro p {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.portal-panels {
    display: grid;
    gap: 1rem;
    align-items: start;
    transition: grid-template-columns 260ms ease;
}

.panel {
    padding: clamp(1.05rem, 1.9vw, 1.35rem);
    transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.panel-dashboard {
    background: linear-gradient(180deg, #ffffff, #f8fcf8);
}

.panel-dashboard:not(.hidden) {
    border-color: #cfe1d0;
    box-shadow: 0 18px 34px rgba(16, 44, 28, 0.11);
    animation: portalPaneIn 260ms ease;
}

@keyframes portalPaneIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab {
    border: 1px solid var(--line);
    background: #f5fbfb;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.tab.active {
    background: #caf0f4;
    border-color: #8eced7;
}

.form {
    display: none;
    gap: 0.65rem;
}

.form h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.form.active {
    display: grid;
    animation: riseIn 220ms ease;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    font-size: 0.9rem;
    color: #264032;
    display: grid;
    gap: 0.35rem;
}

.label-title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c8d2db;
    border-radius: 12px;
    padding: 0.62rem 0.72rem;
    font: inherit;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2a94a2;
    box-shadow: 0 0 0 4px rgba(42, 148, 162, 0.14);
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 0.62rem 1rem;
    font-weight: 700;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 160ms ease;
}

.btn .jp-icon {
    width: 0.98rem;
    height: 0.98rem;
}

.btn-solid {
    color: #fff;
    background: linear-gradient(110deg, var(--brand), #0ea5a7 58%, #14b8a6);
    box-shadow: 0 12px 24px rgba(0, 109, 119, 0.25);
}

.btn-ghost {
    background: #f5f8fb;
    border: 1px solid #ccd7e0;
    color: #203642;
}

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

.btn:active {
    transform: translateY(0);
}

.btn.loading .jp-icon {
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.message {
    min-height: 1.3rem;
    color: #294e38;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.error {
    color: #9b1b1b;
}

.hidden {
    display: none !important;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #dfeadf;
    margin-bottom: 0.75rem;
}

.dash-head h3,
.table-head h4,
.key-box p {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.key-box {
    border: 1px dashed #a8baad;
    background: #f7faf4;
    border-radius: 14px;
    padding: 0.8rem;
    margin: 0.8rem 0 1rem;
}

.customer-workspace {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.customer-sidebar {
    border: 1px solid #d6e0e8;
    background: linear-gradient(180deg, #f8fcfd, #edf6f8);
    border-radius: 14px;
    padding: 0.5rem;
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.customer-nav-link {
    border: 1px solid #d4dfe7;
    background: transparent;
    color: #1d3946;
    border-radius: 12px;
    padding: 0.62rem 0.72rem;
    font: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    text-align: left;
}

.customer-nav-link.active {
    background: linear-gradient(120deg, #dff4f7, #d8eef3);
    border-color: #96c9d3;
    box-shadow: 0 6px 14px rgba(24, 104, 120, 0.15);
}

.customer-content {
    border: 1px solid #d6dfe7;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(153, 224, 233, 0.2), transparent 34%),
        #ffffff;
    padding: 0.92rem;
    min-width: 0;
    overflow: hidden;
}

.customer-pane h4 {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
}

.customer-pane>p {
    margin-top: 0;
    color: #4d6656;
}

.customer-pane {
    display: none;
}

.customer-pane.active {
    display: block;
    animation: riseIn 180ms ease;
}

.insight-grid,
.profile-grid {
    display: grid;
    gap: 0.58rem;
    margin-top: 0.55rem;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem;
    margin-top: 0.52rem;
}

.quick-actions .btn {
    border: 1px solid #d3dee6;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    color: #1a3845;
    box-shadow: 0 6px 14px rgba(15, 40, 51, 0.08);
}

.quick-actions .btn:hover {
    border-color: #9ec0ce;
    box-shadow: 0 10px 18px rgba(15, 40, 51, 0.12);
}

.insight-card,
.profile-grid article {
    border: 1px solid #d8e1e8;
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfeff, #f3f8fb);
    padding: 0.68rem 0.72rem;
    box-shadow: 0 8px 18px rgba(16, 34, 54, 0.06);
}

.insight-card p,
.profile-grid p {
    margin: 0 0 0.2rem;
    color: #4f6a58;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.insight-card strong,
.profile-grid strong {
    font-size: clamp(1.12rem, 1.9vw, 1.38rem);
    color: #0f2f20;
    line-height: 1.15;
}

.insight-footnote {
    color: #506a58;
    font-size: 0.85rem;
    margin: 0.62rem 0 0;
}

.inline-message {
    min-height: 1.1rem;
    margin: -0.2rem 0 0.65rem;
}

.txn-account-form {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.5rem;
}

.txn-account-form .btn {
    width: fit-content;
}

code {
    background: #10202c;
    color: #c8f8ff;
    border-radius: 8px;
    display: inline-block;
    padding: 0.35rem 0.5rem;
}

.empty-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4c6052;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    border-radius: 999px;
    padding: 0.18rem 0.58rem;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-success {
    background: #e9fdf1;
    border-color: #96ddae;
    color: #0b6a39;
}

.status-pending {
    background: #fff5de;
    border-color: #ffd08a;
    color: #8f5602;
}

.status-failed {
    background: #ffebeb;
    border-color: #f7b1b1;
    color: #8f2020;
}

.status-other {
    background: #eef3f1;
    border-color: #d3ddda;
    color: #2f4a3b;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    border: 1px solid #d2dde6;
    padding: 0.12rem 0.55rem;
    font-weight: 700;
    font-size: 0.78rem;
    background: #fbfeff;
    text-transform: capitalize;
}

.table-wrap {
    overflow: auto;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.45rem;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

td:nth-child(3) {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #d2dce4;
    padding: 0.62rem 0.56rem;
    font-size: 0.9rem;
}

thead th {
    color: #365243;
    font-size: 0.78rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

thead th .jp-icon {
    margin-right: 0.28rem;
    vertical-align: -0.08em;
}

tbody tr:hover td {
    background: #f4f9fc;
}

tbody td:first-child {
    font-weight: 700;
    color: #173f4a;
}

.hero-cards article:nth-child(1) {
    animation: riseIn 280ms ease;
}

.hero-cards article:nth-child(2) {
    animation: riseIn 380ms ease;
}

.hero-cards article:nth-child(3) {
    animation: riseIn 480ms ease;
}

@media (max-width: 640px) {
    .topbar {
        padding: 0.75rem 0.85rem;
        gap: 0.4rem;
    }

    .brand {
        font-size: 1rem;
        gap: 0.45rem;
    }

    .brand-mark {
        width: 1.75rem;
        height: 1.75rem;
    }

    main {
        width: min(1120px, 94vw);
    }

    .hero {
        padding: 3.6rem 0 1.8rem;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-main-shot,
    .hero-sub-shot {
        min-height: 180px;
    }

    .hero-kpi {
        grid-column: auto;
    }

    .hero-badge {
        grid-column: auto;
    }

    .stat-ribbon {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(1.8rem, 8.5vw, 2.6rem);
        max-width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }

    .section {
        padding: 1.9rem 0;
    }

    .section-dark {
        padding: 1.2rem;
    }

    .portal-shell {
        padding: 0.8rem;
    }

    .panel,
    .hero-cards article,
    .steps article {
        border-radius: 14px;
        padding: 0.95rem;
    }

    .tabs {
        width: 100%;
    }

    .tab {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.55rem;
        font-size: 0.86rem;
    }

    .dash-head {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-sidebar {
        display: flex;
        overflow-x: auto;
        gap: 0.45rem;
        padding: 0.45rem;
    }

    .customer-nav-link {
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }

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

    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .txn-account-form .btn {
        width: 100%;
        justify-content: center;
    }

    .table-head {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .table-head h4 {
        font-size: 0.98rem;
    }

    table {
        min-width: 640px;
    }
}

@media (min-width: 860px) {
    .topbar {
        padding: 0.95rem 2.2rem;
    }

    .topbar nav {
        display: flex;
    }

    .hero-cards,
    .grid-3,
    .steps,
    .portal-panels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-premium {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
        align-items: center;
        gap: 1.4rem;
    }

    .showcase-grid,
    .testimonials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-ribbon {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .portal-panels {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }

    .portal-panels.is-logged-in {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-panels.is-logged-in .panel-dashboard {
        grid-column: 1 / -1;
        transform: translateY(-2px);
    }

    .customer-workspace {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 0.8rem;
    }

    .customer-sidebar {
        grid-template-columns: 1fr;
        display: grid;
        overflow: visible;
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 110px);
    }

    .customer-nav-link {
        justify-content: flex-start;
        text-align: left;
    }

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

    .customer-content {
        padding: 1rem;
    }

    .quick-actions .btn {
        width: auto;
        justify-content: center;
    }

    .hero {
        padding-top: clamp(4.8rem, 7vw, 6.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-block {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bg-orb {
        animation: none;
    }

    .showcase-card,
    .hero-main-shot,
    .hero-sub-shot,
    .hero-visual,
    .btn,
    .panel {
        transition: none;
    }
}