/* ============================================================
   PRIME STOCK PLUS — Design System
   Premium fintech / online trading platform
   ============================================================ */

:root {
    /* Brand palette */
    --navy-950: #04101f;
    --navy-900: #050b16;
    --navy-800: #071a35;
    --navy-700: #0b2747;
    --navy-600: #12365f;
    --royal: #0b5cff;
    --royal-dark: #0846c4;
    --royal-soft: #eaf1ff;
    --green: #16c784;
    --green-soft: #e8faf3;
    --gold: #d9a441;
    --gold-soft: #faf3e2;
    --ink: #111827;
    --muted: #5b6b83;
    --border: #e2e8f0;
    --bg: #f6f8fc;
    --white: #ffffff;

    /* Type */
    --font: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Shape & depth */
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(7, 26, 53, 0.06);
    --shadow-md: 0 6px 24px rgba(7, 26, 53, 0.08);
    --shadow-lg: 0 18px 48px rgba(7, 26, 53, 0.14);
    --shadow-royal: 0 10px 28px rgba(11, 92, 255, 0.28);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

[x-cloak] {
    display: none;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--royal);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--royal-dark);
}

::selection {
    background: rgba(11, 92, 255, 0.15);
    color: var(--navy-800);
}

:focus-visible {
    outline: 3px solid rgba(11, 92, 255, 0.45);
    outline-offset: 2px;
    border-radius: 4px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #eef2f8;
}
::-webkit-scrollbar-thumb {
    background: #c3cede;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fb0c9;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--royal);
    background: var(--royal-soft);
    border: 1px solid #d5e3ff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

.eyebrow--green {
    color: #0c9c69;
    background: var(--green-soft);
    border-color: #bdeeda;
}

.eyebrow--gold {
    color: #a97a1f;
    background: var(--gold-soft);
    border-color: #f0ddb4;
}

.eyebrow--on-dark {
    color: #93c5fd;
    background: rgba(11, 92, 255, 0.14);
    border-color: rgba(11, 92, 255, 0.35);
}

.text-gradient {
    background: linear-gradient(120deg, #0b5cff 0%, #16c784 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

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

.section-title {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section-pad {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
    will-change: transform;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.02rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.55rem 1.05rem;
    font-size: 0.84rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--royal);
    color: #fff;
    box-shadow: var(--shadow-royal);
}

.btn-primary:hover {
    background: var(--royal-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(11, 92, 255, 0.36);
}

.btn-green {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 26px rgba(22, 199, 132, 0.3);
}

.btn-green:hover {
    background: #0fb273;
    color: #fff;
    transform: translateY(-2px);
}

.btn-sky {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

.btn-sky:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 55%, #0ea5e9 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.52);
}

.btn-gold {
    background: var(--gold);
    color: #1c1a12;
    box-shadow: 0 10px 26px rgba(217, 164, 65, 0.32);
}

.btn-gold:hover {
    background: #c7932f;
    color: #1c1a12;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy-800);
    border-color: #c9d6ea;
}

.btn-outline:hover {
    border-color: var(--royal);
    color: var(--royal);
    background: var(--royal-soft);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--navy-800);
}

.btn-ghost:hover {
    background: #eef2f8;
}

.btn-white {
    background: #fff;
    color: var(--navy-800);
    box-shadow: 0 10px 26px rgba(2, 10, 25, 0.22);
}

.btn-white:hover {
    background: #f1f5fb;
    color: var(--navy-800);
    transform: translateY(-2px);
}

/* ---------- Badges & chips ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
}

.chip-up {
    color: var(--green);
    background: var(--green-soft);
    border-color: #c9f1e0;
}

.chip-down {
    color: #e6455a;
    background: #fdeef0;
    border-color: #f6cfd4;
}

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cfe0ff;
}

.card-body {
    padding: 1.6rem;
}

/* ---------- Legal / article typography ---------- */
.prose-styled {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}
.prose-styled h2 {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 2.2rem 0 0.9rem;
    padding-top: 0.5rem;
}
.prose-styled h2:first-child {
    margin-top: 0;
}
.prose-styled h3 {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.6rem 0 0.6rem;
}
.prose-styled p {
    margin: 0 0 1rem;
}
.prose-styled ul,
.prose-styled ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}
.prose-styled ul {
    list-style: disc;
}
.prose-styled ol {
    list-style: decimal;
}
.prose-styled li {
    margin: 0.35rem 0;
}
.prose-styled strong {
    color: var(--ink);
    font-weight: 700;
}
.prose-styled a {
    color: var(--royal);
    text-decoration: underline;
}
.prose-styled a:hover {
    color: var(--royal-dark);
}
.prose-styled blockquote {
    border-left: 3px solid var(--royal);
    padding: 0.2rem 0 0.2rem 1.2rem;
    margin: 1.2rem 0;
    color: var(--ink);
    font-style: italic;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 1.45rem;
    background: var(--royal-soft);
    color: var(--royal);
    flex-shrink: 0;
}

/* ---------- Market table ---------- */
.prime-table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.prime-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prime-table thead th {
    background: #f8fafd;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.9rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.prime-table tbody td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eef2f8;
    vertical-align: middle;
}

.prime-table tbody tr {
    transition: background-color 0.15s var(--ease);
}

.prime-table tbody tr:hover {
    background: #f7faff;
}

.prime-table tbody tr:last-child td {
    border-bottom: 0;
}

.trend-up {
    color: var(--green);
    font-weight: 700;
}
.trend-down {
    color: #e6455a;
    font-weight: 700;
}

.symbol-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--navy-800);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.spark {
    display: block;
    width: 88px;
    height: 30px;
}

/* ---------- Ticker ---------- */
.ticker {
    overflow: hidden;
    position: relative;
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 45s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 1.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd7ea;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

.ticker-item b {
    color: #fff;
    font-weight: 700;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Navbar ---------- */
.prime-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(5, 11, 22, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

.prime-nav.is-scrolled {
    background: rgba(5, 11, 22, 0.97);
    box-shadow: 0 12px 34px rgba(2, 8, 20, 0.35);
}

.prime-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    transition: height 0.3s var(--ease);
}

.prime-nav.is-scrolled .prime-nav__inner {
    height: 72px;
}

.prime-nav__links {
    display: none;
    align-items: center;
    gap: 0.4rem;
}

@media (min-width: 1024px) {
    .prime-nav__links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.93rem;
    font-weight: 600;
    color: #cbd7ea;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link .caret {
    transition: transform 0.25s var(--ease);
}

.nav-link[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 236px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 70;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-radius: 2px;
}

.nav-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.15s var(--ease);
}

.nav-dropdown a:hover {
    background: var(--royal-soft);
    color: var(--royal);
}

.nav-dropdown a i {
    color: var(--royal);
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--navy-950);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__body {
    flex: 1;
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
}

.mobile-menu__foot {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e6edf7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
}

.mm-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s var(--ease);
}

.mm-sub.is-open {
    max-height: 480px;
}

.mm-sub a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    margin: 0.15rem 0;
    border-radius: 10px;
    color: #aebfd8;
    font-size: 0.95rem;
    font-weight: 600;
}

.mm-sub a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.mm-sub a i {
    color: #7ba7ff;
    width: 18px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-950);
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__image {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(4, 16, 31, 0.86) 0%, rgba(4, 16, 31, 0.76) 45%, rgba(4, 16, 31, 0.94) 82%, var(--navy-950) 100%),
        url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center 28%;
    background-repeat: no-repeat;
    filter: saturate(0.88) contrast(1.06);
    opacity: 0.92;
    animation: hero-zoom 24s var(--ease) forwards;
}

@keyframes hero-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.hero__glow--blue {
    width: 560px;
    height: 560px;
    background: rgba(11, 92, 255, 0.4);
    top: -220px;
    right: -120px;
}

.hero__glow--green {
    width: 420px;
    height: 420px;
    background: rgba(22, 199, 132, 0.22);
    bottom: -180px;
    left: -120px;
}

/* Hero dashboard card */
.dashcard {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(2, 8, 20, 0.5);
    overflow: hidden;
}

.dashcard__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashcard__body {
    padding: 1.2rem;
}

.chart-float {
    position: absolute;
    border-radius: 16px;
    background: rgba(5, 16, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(2, 8, 20, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.chart-float--a {
    top: 8%;
    left: -12%;
    animation-delay: 0s;
}

.chart-float--b {
    bottom: 10%;
    right: -10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.draw-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 2.6s var(--ease) forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.pulse-dot {
    position: relative;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: pulse-ring 2s var(--ease) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .ticker-track {
        animation: none;
    }
}

/* ---------- Steps / timeline ---------- */
.step-card {
    position: relative;
    padding: 1.9rem 1.7rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px #b9cdf3;
}

.step-card:hover .step-num {
    -webkit-text-stroke: 1.5px var(--royal);
}

/* ---------- Feature tile ---------- */
.feature-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cfe0ff;
}

/* ---------- Device mockup ---------- */
.device {
    position: relative;
    border-radius: 26px;
    background: #0a1526;
    border: 8px solid #1b2940;
    box-shadow: 0 40px 90px rgba(7, 26, 53, 0.4);
    overflow: hidden;
}

.device__screen {
    background: linear-gradient(180deg, #0a1730 0%, #050d1d 100%);
    border-radius: 14px;
    overflow: hidden;
}

/* ---------- Misc helpers ---------- */
.bg-soft {
    background: #f0f4fb;
}

.bg-navy {
    background: var(--navy-950);
    color: #d7e2f3;
}

.bg-navy .section-title,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: #fff;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0;
}

.stat-value {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.text-on-dark {
    color: #c7d4e6;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-800);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, background-color 0.2s var(--ease);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--royal);
}

/* Accordion */
.acc {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.acc.is-open {
    border-color: #cfe0ff;
    box-shadow: var(--shadow-sm);
}

.acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    text-align: left;
}

.acc__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--royal-soft);
    color: var(--royal);
    font-size: 0.9rem;
    transition: transform 0.3s var(--ease);
}

.acc.is-open .acc__icon {
    transform: rotate(180deg);
}

.acc__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.acc__body-inner {
    padding: 0 1.35rem 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Tabs */
.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.tab-btn:hover {
    border-color: #cfe0ff;
    color: var(--royal);
}
.tab-btn--active {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(11, 92, 255, 0.45);
}

/* Forms */
.field {
    width: 100%;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d5deeb;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field::placeholder {
    color: #9aa8bd;
}

.field:focus {
    outline: none;
    border-color: var(--royal);
    box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.12);
}

.field-error {
    border-color: #e6455a;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--green-soft);
    color: #0c7f58;
    border: 1px solid #bdeeda;
}

.alert-error {
    background: #fdeef0;
    color: #c23546;
    border: 1px solid #f6cfd4;
}

/* Stats band */
.stat-band {
    background: linear-gradient(120deg, var(--navy-800), #0a2a52 55%, var(--navy-800));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
}

/* Marquee images row */
.logo-strip {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Dark section helper */
.section-dark {
    background: var(--navy-950);
    color: #c7d4e6;
}

/* Footer */
.prime-footer {
    background: var(--navy-950);
    color: #9fb1ca;
}

.prime-footer a {
    color: #9fb1ca;
}

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

.prime-footer h4 {
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

/* ---------- Responsive tables to cards (mobile) ---------- */
@media (max-width: 767px) {
    .prime-table thead {
        display: none;
    }

    .prime-table,
    .prime-table tbody,
    .prime-table tr,
    .prime-table td {
        display: block;
        width: 100%;
    }

    .prime-table tbody tr {
        padding: 1rem 1.2rem;
        border-bottom: 1px solid #eef2f8;
    }

    .prime-table tbody tr:hover {
        background: #f7faff;
    }

    .prime-table tbody td {
        border: 0;
        padding: 0.35rem 0;
    }

    .prime-table .td-pair {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .prime-table .td-label {
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 768px) {
    .td-label {
        display: none;
    }
}
