/* CardSTEM shared premium design system. Single source of truth for nav, buttons,
   sections, cards, footer, tokens, typography, responsive. Extracted from the
   homepage so every page renders the same premium look. */
*, *::before, *::after { box-sizing: border-box; }

        :root {
            --navy: #163b79;
            --navy-deep: #102a5a;
            --navy-ink: #24415f;
            --orange: #f28705;
            --orange-deep: #dc6f00;
            --orange-soft: #fff0de;
            --teal: #18b7b5;
            --teal-deep: #0f766e;   /* AA-safe teal for TEXT/links (5.47:1) */
            --orange-text: #a85400; /* AA-safe orange for TEXT/links (4.6:1) */
            --teal-soft: #dcf7f7;
            --purple: #0f766e;
            --purple-soft: #dcf7f7;
            --sky: #18b7b5;
            --mint: #18b7b5;
            --coral: #f28705;
            --paper: #fffdf8;
            --mist: #f7f8fc;
            --white: #ffffff;
            --text: #23415f;
            --text-soft: #536781;
            --shadow-sm: 0 12px 24px rgba(27, 52, 96, 0.08);
            --shadow-md: 0 22px 60px rgba(20, 42, 82, 0.12);
            --radius-lg: 32px;
            --radius-md: 24px;
        }

        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            font-family: 'Manrope', sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(24, 183, 181, 0.18), transparent 28%),
                radial-gradient(circle at top right, rgba(242, 135, 5, 0.18), transparent 30%),
                radial-gradient(circle at 18% 68%, rgba(24, 183, 181, 0.10), transparent 24%),
                linear-gradient(180deg, #f9fbff 0%, #fffdf8 42%, #f6fbff 100%);
            min-height: 100vh;
            line-height: 1.65;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
            background-size: 36px 36px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.18), transparent 55%);
            z-index: 0;
        }

        a { color: inherit; }
        img { display: block; max-width: 100%; }

        .page-shell {
            position: relative;
            z-index: 1;
        }

        .container {
            width: min(1160px, calc(100% - 40px));
            margin: 0 auto;
        }

        .section {
            padding: 88px 0;
        }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid rgba(22, 59, 121, 0.1);
            color: var(--navy);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            box-shadow: var(--shadow-sm);
        }

        .section-label::before {
            content: '';
            width: 9px;
            height: 9px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--orange), var(--teal));
            box-shadow: 0 0 0 4px rgba(24, 183, 181, 0.12);
        }

        h1, h2, h3, h4 {
            margin: 0;
            font-family: 'Nunito', sans-serif;
            letter-spacing: -0.04em;
            color: var(--navy);
        }

        p {
            margin: 0;
            color: var(--text-soft);
        }

        /* ── Nav ── */
        nav {
            position: sticky;
            top: 0;
            z-index: 40;
            padding: 18px 0;
            background: rgba(255, 253, 248, 0.82);
            backdrop-filter: blur(18px);
            border-bottom: 1px solid rgba(22, 59, 121, 0.08);
        }

        nav .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            min-width: 0;
        }

        .brand-mark {
            width: 54px;
            flex: 0 0 auto;
        }

        .brand-wordmark {
            width: 180px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .nav-links a {
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
            color: var(--navy-ink);
            padding: 10px 0;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: var(--orange-text);
        }

        .button,
        button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 48px;
            padding: 0 20px;
            border-radius: 999px;
            text-decoration: none;
            font-size: 15px;
            font-weight: 800;
            font-family: 'Nunito', sans-serif;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
            border: 1px solid transparent;
            cursor: pointer;
        }

        .button:hover,
        button:hover {
            transform: translateY(-1px);
        }

        .button-primary {
            background: linear-gradient(135deg, var(--orange) 0%, #ff9c24 100%);
            color: var(--white);
            box-shadow: 0 18px 30px rgba(242, 135, 5, 0.24);
        }

        .button-secondary {
            background: rgba(255, 255, 255, 0.86);
            color: var(--navy);
            border-color: rgba(22, 59, 121, 0.12);
            box-shadow: var(--shadow-sm);
        }

        .mobile-menu {
            display: none;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            border: 1px solid rgba(22, 59, 121, 0.12);
            background: rgba(255, 255, 255, 0.9);
            color: var(--navy);
            font-size: 22px;
        }

        /* ── Hero ── */
        .hero {
            padding: 52px 0 54px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
            gap: 28px;
            align-items: stretch;
        }

        .hero-copy,
        .hero-visual {
            position: relative;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.84);
            border: 1px solid rgba(22, 59, 121, 0.1);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
        }

        .hero-copy {
            padding: 42px;
        }

        .hero-copy::before {
            content: '';
            position: absolute;
            inset: auto auto -90px -90px;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(24, 183, 181, 0.16), transparent 66%);
        }

        .hero-copy > * {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            margin-top: 20px;
            font-size: clamp(42px, 7vw, 72px);
            line-height: 0.95;
            max-width: 680px;
        }

        .hero h1 .hl {
            color: var(--orange-text);
        }

        .hero-sub {
            margin-top: 18px;
            max-width: 620px;
            font-size: 18px;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 28px;
        }

        .hero-proof {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 28px;
        }

        .hero-proof-item {
            padding: 14px 16px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(22, 59, 121, 0.08);
            color: var(--navy-ink);
            font-size: 14px;
            font-weight: 700;
            box-shadow: var(--shadow-sm);
        }

        .hero-visual {
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background:
                radial-gradient(circle at top right, rgba(242, 135, 5, 0.18), transparent 34%),
                radial-gradient(circle at bottom left, rgba(24, 183, 181, 0.16), transparent 32%),
                linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,248,252,0.92));
        }

        .hero-visual::after {
            content: '';
            position: absolute;
            inset: 14px;
            border-radius: 26px;
            border: 1px solid rgba(255, 255, 255, 0.64);
            pointer-events: none;
        }

        .hero-logo-panel {
            padding: 18px;
            border-radius: 28px;
            background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
            border: 1px solid rgba(22, 59, 121, 0.08);
            box-shadow: 0 18px 34px rgba(20, 42, 82, 0.08);
        }

        .hero-logo {
            width: min(100%, 360px);
            margin: 0 auto;
        }

        .hero-chip-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 18px;
        }

        .hero-chip {
            padding: 14px 14px 13px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(22, 59, 121, 0.08);
            box-shadow: var(--shadow-sm);
        }

        .hero-chip strong {
            display: block;
            font-family: 'Nunito', sans-serif;
            font-size: 15px;
            color: var(--navy);
            margin-bottom: 4px;
        }

        .hero-chip span {
            display: block;
            font-size: 13px;
            color: var(--text-soft);
        }

        /* ── Section Headers ── */
        .section-header {
            display: grid;
            gap: 14px;
            margin-bottom: 34px;
            text-align: center;
        }

        .section-header h2 {
            font-size: clamp(34px, 4.6vw, 54px);
            line-height: 0.98;
        }

        .section-header p {
            max-width: 780px;
            margin: 0 auto;
            font-size: 18px;
        }

        /* ── Why Grid ── */
        .why-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
        }

        .why-card,
        .deployment-card,
        .implementation-panel,
        .contents-panel,
        .cta-panel,
        .stat-card,
        .access-panel {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(22, 59, 121, 0.1);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
        }

        .why-card {
            padding: 24px;
        }

        .why-card .eyebrow {
            display: inline-flex;
            margin-bottom: 14px;
            font-size: 12px;
            font-weight: 800;
            padding: 6px 10px;
            border-radius: 999px;
            background: var(--orange-soft);
            color: var(--orange-text);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .why-card h3 {
            font-size: 28px;
            line-height: 1.02;
            margin-bottom: 10px;
        }

        .why-card p {
            margin-bottom: 18px;
        }

        .why-note {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 800;
            color: var(--navy);
        }

        .why-note::before {
            content: '';
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: currentColor;
        }

        /* ── Implementation ── */
        .implementation {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
            gap: 22px;
        }

        .contents-panel,
        .implementation-panel {
            padding: 28px;
        }

        .contents-panel h3,
        .implementation-panel h3 {
            font-size: 34px;
            margin-bottom: 10px;
        }

        .contents-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin-top: 24px;
        }

        .contents-item {
            padding: 18px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,248,252,0.96));
            border: 1px solid rgba(22, 59, 121, 0.08);
        }

        .contents-item strong {
            display: block;
            font-family: 'Nunito', sans-serif;
            font-size: 17px;
            color: var(--navy);
            margin-bottom: 6px;
        }

        .caption-note {
            margin-top: 18px;
            padding: 16px 18px;
            border-radius: 18px;
            background: rgba(24, 183, 181, 0.08);
            border: 1px solid rgba(24, 183, 181, 0.18);
            color: var(--navy-ink);
            font-size: 14px;
        }

        .caption-note strong {
            color: var(--navy);
        }

        .implementation-stack {
            display: grid;
            gap: 14px;
            margin-top: 24px;
        }

        .stack-row {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 16px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,248,252,0.96));
            border: 1px solid rgba(22, 59, 121, 0.08);
        }

        .stack-index {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: 'Nunito', sans-serif;
            font-size: 14px;
            font-weight: 900;
            color: var(--white);
            background: linear-gradient(135deg, var(--navy), var(--teal));
        }

        .stack-row strong {
            display: block;
            font-family: 'Nunito', sans-serif;
            font-size: 17px;
            color: var(--navy);
            margin-bottom: 4px;
        }

        /* ── Product / Deployment Cards ── */
        .deployment-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
        }

        .deployment-card {
            padding: 28px;
            display: flex;
            flex-direction: column;
        }

        .deployment-card .ribbon {
            display: inline-flex;
            align-self: flex-start;
            margin-bottom: 14px;
            font-size: 12px;
            font-weight: 800;
            padding: 6px 10px;
            border-radius: 999px;
            background: var(--orange-soft);
            color: var(--orange-text);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .deployment-card h3 {
            font-size: 22px;
            line-height: 1.15;
            margin-bottom: 10px;
        }

        .deployment-card p {
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 0;
        }

        .deployment-card ul {
            margin: 12px 0 0;
            padding-left: 18px;
            color: var(--text-soft);
            font-size: 15px;
        }

        .deployment-card li + li {
            margin-top: 6px;
        }

        /* ── Stats Strip ── */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
        }

        .stat-card {
            padding: 24px;
            text-align: center;
        }

        .stat-card strong {
            display: block;
            font-family: 'Nunito', sans-serif;
            font-size: 40px;
            line-height: 1;
            color: var(--navy);
            margin-bottom: 8px;
        }

        .stat-card span {
            font-size: 15px;
            color: var(--text-soft);
            font-weight: 600;
        }

        /* ── Quick Access ── */
        .access-panel {
            padding: 28px;
        }

        .access-panel h3 {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .access-panel p {
            margin-bottom: 20px;
            font-size: 15px;
        }

        .access-links {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .access-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 18px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,248,252,0.96));
            border: 1px solid rgba(22, 59, 121, 0.08);
            text-decoration: none;
            font-weight: 700;
            font-size: 15px;
            color: var(--navy);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }

        .access-link:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .access-link::before {
            content: '\2192';
            width: 30px;
            height: 30px;
            border-radius: 50%;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            background: var(--orange-soft);
            color: var(--orange-text);
        }

        /* ── CTA ── */
        .cta-panel {
            padding: 34px;
            text-align: center;
            background:
                radial-gradient(circle at top left, rgba(24, 183, 181, 0.16), transparent 32%),
                radial-gradient(circle at bottom right, rgba(242, 135, 5, 0.18), transparent 32%),
                rgba(255,255,255,0.9);
            box-shadow: var(--shadow-md);
        }

        .cta-panel h2 {
            font-size: clamp(34px, 5vw, 56px);
            line-height: 0.96;
            max-width: 760px;
            margin: 0 auto 12px;
        }

        .cta-panel p {
            max-width: 700px;
            margin: 0 auto;
            font-size: 18px;
        }

        .cta-actions {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 26px;
        }

        /* ── Footer ── */
        footer {
            padding: 40px 0 56px;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px 24px;
            padding: 22px 28px;
            border-radius: var(--radius-md);
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(22, 59, 121, 0.1);
            box-shadow: var(--shadow-sm);
        }

        .footer-links a {
            text-decoration: none;
            color: var(--navy-ink);
            font-weight: 700;
            font-size: 14px;
        }

        .footer-links a:hover { color: var(--orange-text); }

        .footer-meta {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 18px 28px 0;
            font-size: 13px;
            color: var(--text-soft);
            line-height: 1.6;
        }

        .footer-meta a {
            color: var(--text-soft);
            text-decoration: none;
            font-weight: 700;
        }

        .footer-meta a:hover { color: var(--orange-text); }

        /* ── Responsive ── */
        @media (max-width: 1080px) {
            .deployment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        @media (max-width: 900px) {
            .hero-grid,
            .implementation,
            .why-grid {
                grid-template-columns: 1fr;
            }

            .hero-proof,
            .contents-list,
            .access-links {
                grid-template-columns: 1fr;
            }

            .nav-links {
                display: none;
            }

            .mobile-menu {
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .nav-open .nav-links {
                display: flex;
                position: absolute;
                left: 20px;
                right: 20px;
                top: calc(100% + 10px);
                padding: 18px;
                border-radius: 24px;
                background: #ffffff;
                border: 1px solid rgba(22, 59, 121, 0.1);
                box-shadow: var(--shadow-md);
                flex-direction: column;
                align-items: stretch;
                gap: 0;
            }

            .nav-open .nav-links a {
                padding: 12px 4px;
            }

            .section {
                padding: 74px 0;
            }

            .hero-copy,
            .hero-visual,
            .contents-panel,
            .implementation-panel,
            .cta-panel,
            .access-panel {
                padding: 28px;
            }
        }

        @media (max-width: 720px) {
            .container { width: min(100% - 24px, 1160px); }
            .hero { padding-top: 28px; }
            .hero h1 { font-size: clamp(34px, 11vw, 54px); }
            .section-header h2,
            .cta-panel h2 { font-size: clamp(30px, 10vw, 44px); }
            .deployment-grid,
            .stats-grid { grid-template-columns: 1fr; }
            .brand-mark { width: 46px; }
            .brand-wordmark { width: 152px; }
        }

/* ── Post-unification fixes: promote shared rules that got scoped into per-page
      <style> blocks during the migration, so all pages render identically. ── */
.nav-links a[aria-current="page"] { color: var(--orange-text); }
.card-link { margin: 6px 0 0; }
.card-link a { color: var(--orange-text); font-weight: 700; text-decoration: none; }
.card-link a:hover { text-decoration: underline; }
.why-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 15px; }
.why-card ul li + li { margin-top: 6px; }
@media (max-width: 720px) {
    .footer-links a { padding: 7px 0; }
}

/* Footer uses <nav class="footer-links"> — keep the global header nav styles (sticky/blur/border) from leaking onto it. */
.footer-links { position: static; top: auto; z-index: auto; backdrop-filter: none; }
