/* SPHERE landing — reference theme (matches marketing reference) */
:root {
    --bg: #F7F8FC;
    --bg2: #FFFFFF;
    --bg3: #EEF1FA;
    --blue: #0369A1;
    --blue-mid: #0EA5E9;
    --blue-light: #E0F2FE;
    --blue-dim: rgba(3, 105, 161, 0.08);
    --ink: #0F172A;
    --ink-mid: #334155;
    --ink-dim: #64748B;
    --border: #E2E8F0;
    --border-b: rgba(3, 105, 161, 0.2);
    --gold: #B45309;
    --gold-bg: #FEF3C7;
    --green: #15803D;
    --green-bg: #DCFCE7;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1), 0 4px 16px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.6s ease both;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25);
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
    background: #4ADE80;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.logo-mark svg {
    width: 21px;
    height: 21px;
    fill: white;
}

.logo-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.64rem;
    color: var(--ink-dim);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s;
    border-radius: 2px;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.btn-nav-ghost {
    color: var(--ink-mid);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 9px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-nav-ghost:hover {
    background: var(--bg3);
    border-color: var(--border);
}

.btn-nav-primary {
    background: var(--blue);
    color: white;
    padding: 0.55rem 1.4rem;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 10px rgba(3, 105, 161, 0.25);
}

.btn-nav-primary:hover {
    background: #0284C7;
    box-shadow: 0 4px 18px rgba(3, 105, 161, 0.35);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    z-index: 1;
    /* Reduce top padding to align hero-badge ("Enterprise Procurement Platform") */
    padding: 6.5rem 2.5rem 6rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.blob1 {
    width: 650px;
    height: 550px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.1), transparent 70%);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    animation: blobPulse 10s ease-in-out infinite;
}

.blob2 {
    width: 400px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(3, 105, 161, 0.06), transparent 70%);
    top: 80px;
    right: 5%;
    animation: blobPulse 12s 2s ease-in-out infinite reverse;
}

.blob3 {
    width: 350px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(180, 83, 9, 0.04), transparent 70%);
    bottom: 0;
    left: 8%;
    animation: blobPulse 11s 1s ease-in-out infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    border: 1px solid var(--border);
    color: var(--blue);
    padding: 0.35rem 1.1rem 0.35rem 0.65rem;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 2.2rem;
    animation: fadeUp 0.6s 0.2s ease both;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2.5s infinite;
    box-shadow: 0 0 8px rgba(21, 128, 61, 0.4);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.9rem, 6vw, 5.8rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto 1.6rem;
    animation: fadeUp 0.7s 0.35s ease both;
}

.hero h1 .accent {
    font-style: italic;
    color: var(--blue);
}

.hero-sub {
    font-size: 1.08rem;
    color: var(--ink-dim);
    max-width: 620px;
    margin: 0 auto 2.8rem;
    font-weight: 400;
    line-height: 1.75;
    animation: fadeUp 0.7s 0.5s ease both;
}

.hero-actions {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.7s 0.65s ease both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    color: white;
    padding: 0.95rem 2.4rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(3, 105, 161, 0.3);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(3, 105, 161, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--ink-mid);
    padding: 0.95rem 2.2rem;
    border-radius: 11px;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.trust-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.8s ease both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--ink-dim);
    font-weight: 500;
}

.trust-item i {
    color: var(--green);
    font-size: 0.88rem;
}

.hero-visual {
    max-width: 1100px;
    margin: 4.5rem auto 0;
    position: relative;
    animation: fadeUp 0.9s 0.9s ease both;
}

.dash-shell {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(3, 105, 161, 0.03);
    overflow: hidden;
}

.dash-topbar {
    background: linear-gradient(to bottom, #FAFBFC, #F8FAFC);
    border-bottom: 1px solid var(--border);
    padding: 0.95rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-dots {
    display: flex;
    gap: 7px;
}

.topbar-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.topbar-dots span:nth-child(1) { background: #FF5F57; }
.topbar-dots span:nth-child(2) { background: #FEBC2E; }
.topbar-dots span:nth-child(3) { background: #28C840; }

.topbar-url {
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0.35rem 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--ink-dim);
    flex: 1;
    max-width: 340px;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dash-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 360px;
}

.dash-sidebar {
    background: linear-gradient(to bottom, #FAFBFC, #F8FAFC);
    border-right: 1px solid var(--border);
    padding: 1.4rem 0;
}

.sidebar-section {
    padding: 0.45rem 1.2rem 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--ink-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.77rem;
    color: var(--ink-mid);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.sidebar-item.active {
    background: var(--blue-light);
    color: var(--blue);
    border-right: 3px solid var(--blue);
    font-weight: 600;
}

.sidebar-item:hover:not(.active) {
    background: rgba(226, 232, 240, 0.4);
}

.sidebar-item i {
    width: 15px;
    font-size: 0.72rem;
}

.dash-main {
    padding: 1.8rem;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.kpi {
    background: linear-gradient(to bottom, white, #FAFBFC);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    transition: all 0.2s;
}

.kpi:hover {
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: var(--shadow-sm);
}

.kpi-label {
    font-size: 0.64rem;
    color: var(--ink-dim);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.kpi-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.kpi-change {
    font-size: 0.64rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.kpi-change.up { color: var(--green); }
.kpi-change.warn { color: var(--gold); }

.dash-table-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.dash-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.dash-tbl th {
    background: linear-gradient(to bottom, #FAFBFC, #F8FAFC);
    padding: 0.6rem 0.9rem;
    text-align: left;
    font-weight: 600;
    color: var(--ink-dim);
    letter-spacing: 0.06em;
    font-size: 0.64rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.dash-tbl td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    color: var(--ink-mid);
}

.dash-tbl tr:last-child td { border-bottom: none; }
.dash-tbl tr:hover td { background: #FAFBFE; }

.pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.pill.approved { background: var(--green-bg); color: var(--green); }
.pill.pending { background: var(--gold-bg); color: var(--gold); }
.pill.review { background: var(--blue-light); color: var(--blue); }

.float-card {
    position: absolute;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    animation: floatY 5s ease-in-out infinite;
    z-index: 10;
}

.float-card-2 {
    animation-delay: -2.5s;
    animation-duration: 6s;
}

.fc-label {
    font-size: 0.64rem;
    color: var(--ink-dim);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.fc-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
}

.fc-value.blue { color: var(--blue); }
.fc-value.green { color: var(--green); }

.stats-band {
    background: linear-gradient(135deg, var(--blue) 0%, #0284C7 50%, var(--blue-mid) 100%);
    padding: 4rem 2.5rem;
    position: relative;
    z-index: 1;
}

.stats-band-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.stat-col {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-col:last-child { border-right: none; }

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-top: 0.6rem;
    letter-spacing: 0.03em;
}

.section {
    padding: 6.5rem 2.5rem;
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.section-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.12;
    margin-bottom: 1.1rem;
}

.section-desc {
    font-size: 0.98rem;
    color: var(--ink-dim);
    max-width: 560px;
    line-height: 1.7;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    margin-top: 3.5rem;
}

.module-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-mid));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.25);
}

.module-card:hover::before { transform: scaleX(1); }

.mod-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.module-card:hover .mod-icon { transform: scale(1.05); }

.mod-icon i {
    font-size: 1.5rem;
    color: var(--blue);
}

.mod-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.mod-desc {
    font-size: 0.84rem;
    color: var(--ink-dim);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.mod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--bg3);
    color: var(--blue);
    border: 1px solid var(--border);
    padding: 0.22rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.mod-arrow {
    margin-left: auto;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: all 0.25s;
}

.module-card:hover .mod-arrow {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
    transform: translateX(5px);
}

.features-bg { background: var(--bg3); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 3.5rem;
}

.feat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.2);
}

.feat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: transform 0.3s;
}

.feat-card:hover .feat-icon-wrap { transform: scale(1.08); }

.feat-icon-wrap i {
    font-size: 1.15rem;
    color: var(--blue);
}

.feat-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.feat-desc {
    font-size: 0.82rem;
    color: var(--ink-dim);
    line-height: 1.7;
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5.5rem;
    align-items: center;
    margin-top: 3.5rem;
}

.step-list {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    gap: 1.3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.step-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.3s;
}

.step-item.active::before,
.step-item:hover::before {
    background: var(--blue);
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--border);
    min-width: 40px;
    line-height: 1;
    transition: color 0.3s;
}

.step-item.active .step-num,
.step-item:hover .step-num {
    color: var(--blue);
}

.step-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.step-body p {
    font-size: 0.82rem;
    color: var(--ink-dim);
    line-height: 1.65;
}

.approval-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.ab-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse 2.5s infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.approver-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.approver-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    animation: slideInLeft 0.4s ease both;
}

.approver-row:nth-child(1) { animation-delay: 0.05s; }
.approver-row:nth-child(2) { animation-delay: 0.15s; }
.approver-row:nth-child(3) { animation-delay: 0.25s; }
.approver-row:nth-child(4) { animation-delay: 0.35s; }

.approver-row.done {
    background: #F0FDF4;
    border-color: rgba(21, 128, 61, 0.15);
}

.approver-row.active {
    background: var(--blue-light);
    border-color: rgba(14, 165, 233, 0.35);
}

.av-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), #BFDBFE);
    border: 1px solid rgba(14, 165, 233, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.av-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
}

.av-role {
    font-size: 0.64rem;
    color: var(--ink-dim);
    font-weight: 500;
}

.av-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.av-badge.done { background: var(--green-bg); color: var(--green); }
.av-badge.active { background: var(--gold-bg); color: var(--gold); }
.av-badge.wait { background: var(--bg3); color: var(--ink-dim); }

.chain-divider {
    display: flex;
    align-items: center;
    padding-left: 1.8rem;
    color: var(--ink-dim);
    font-size: 0.68rem;
}

.status-box {
    margin-top: 1.4rem;
    padding: 1rem 1.15rem;
    background: var(--blue-light);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
}

.status-box-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.status-box-val {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
}

.status-box-sub {
    font-size: 0.72rem;
    color: var(--ink-dim);
    margin-top: 0.25rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 3.5rem;
}

.role-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.role-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-mid));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.role-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.2);
}

.role-card:hover::after { transform: scaleX(1); }

.role-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.role-card:hover .role-icon-wrap { transform: scale(1.05); }

.role-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.role-desc {
    font-size: 0.8rem;
    color: var(--ink-dim);
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.role-perms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.perm {
    font-size: 0.64rem;
    font-weight: 600;
    background: var(--bg3);
    color: var(--blue);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
}

.cta-section {
    background: white;
    border-top: 1px solid var(--border);
    padding: 6.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-bg {
    position: absolute;
    width: 750px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.05), transparent 70%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-inner { position: relative; }

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.3rem;
    line-height: 1.15;
}

.cta-section p {
    font-size: 1.02rem;
    color: var(--ink-dim);
    max-width: 540px;
    margin: 0 auto 2.8rem;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
}

.cta-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3.5rem;
}

.cta-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--ink-dim);
    font-weight: 500;
}

.cta-check i {
    color: var(--green);
    font-size: 0.88rem;
}

.site-footer {
    background: #003399;
    background-image:
        repeating-linear-gradient(
            -14deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.04) 10px,
            rgba(255, 255, 255, 0.04) 11px
        );
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.75rem 2.5rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.footer-simon {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    align-items: flex-start;
}

.footer-simon-logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-simon-body {
    flex: 1;
    min-width: min(100%, 280px);
}

.footer-simon-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 1.35rem;
    max-width: 38rem;
}

.footer-simon-address {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.footer-address-title {
    display: inline-block;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.footer-sphere {
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.footer-brand > span:not(.footer-brand-sub) {
    color: var(--blue-mid);
}

.footer-brand-sub {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
}

.footer-proprietary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-proprietary strong {
    color: #fff;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.15rem 2.5rem 1.35rem;
    text-align: center;
}

.footer-copy {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'JetBrains Mono', monospace;
}

a[data-open-overlay] { cursor: pointer; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .dash-body { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .dash-kpis { grid-template-columns: repeat(2, 1fr); }
    .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
    .float-card { display: none; }
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 1.5rem;
    }
    .footer-sphere {
        border-left: none;
        padding-left: 0;
        padding-top: 1.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .roles-grid { grid-template-columns: 1fr; }
    .stats-band-inner { grid-template-columns: 1fr; }
    .dash-kpis { grid-template-columns: repeat(2, 1fr); }
    nav .nav-actions .btn-nav-ghost { display: none; }
    .hero { padding: 5rem 1.5rem 4rem; }
    .section { padding: 4.5rem 1.5rem; }
    .footer-bottom { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Auth modals */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1200;
    padding: 20px;
}

.overlay.active { display: flex; }

.auth-modal {
    width: min(980px, 95vw);
    /* 640px fits: header + subtitle + 5 fields + button + switch link comfortably */
    min-height: 640px;
    max-height: 90vh;
    background: var(--bg2);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/*
 * The auth modal uses a two-column grid (left = image, right = form viewport).
 * Inside the right column, a sliding track (width: 200%) holds both panels side-by-side.
 * Switching modes applies translateX(-50%) to slide the track, revealing the other panel.
 * The left image column swaps text (login/signup) via CSS opacity transitions.
 */
.auth-modal-cols-track {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    width: 100%;
    flex: 1;
    min-height: 640px;
}

.auth-modal-cols-track > .modal-left,
.auth-modal-cols-track > .modal-right {
    min-width: 0;
    box-sizing: border-box;
}

.modal-left {
    position: relative;
    background: var(--ink);
    min-height: 200px;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88);
    position: absolute;
    inset: 0;
}

.modal-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.35));
    z-index: 1;
}

.modal-details {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 24px;
    color: white;
    z-index: 2;
}

.modal-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-details p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.modal-details--signup {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal-details--login {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-modal.auth-mode-signup .modal-details--login {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-modal.auth-mode-signup .modal-details--signup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-right {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    /* overflow:hidden is critical — it clips the 200%-wide track so
       the grid cell doesn't stretch to fit it */
    overflow: hidden;
    min-width: 0;
    position: relative;
    align-self: stretch;
}

.auth-form-viewport {
    /* Position absolute so its width is pinned to the grid cell,
       not to the content inside. This is what allows overflow:hidden
       on modal-right to actually clip the sliding track. */
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.auth-form-track {
    display: flex;
    /* 200% of the clipping viewport — each panel is exactly 1 viewport wide */
    width: 200%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.auth-modal.auth-mode-signup .auth-form-track {
    transform: translateX(-50%);
}

.auth-panel {
    width: 50%;
    flex-shrink: 0;
    padding: 24px 28px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* flex-start so the header is always visible at top, not pushed to centre */
    justify-content: flex-start;
    overflow-y: auto;
}

/* Login panel only has 2 fields — keep it centred vertically so it looks balanced */
.auth-panel--login {
    justify-content: center;
}

.modal-header { margin-bottom: 16px; }

.modal-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ink);
}

.modal-header p {
    margin-top: 6px;
    color: var(--ink-dim);
    font-size: 0.88rem;
}

.field { margin-bottom: 12px; }

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-mid);
}

.field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    background: var(--bg2);
    color: var(--ink);
}

.field input:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px var(--blue-dim);
}

.field-password-wrap {
    position: relative;
    width: 100%;
}

.field-password-wrap input {
    padding-right: 44px;
    box-sizing: border-box;
}

.field-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ink-mid);
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
    border-radius: 8px;
}

.field-password-toggle:hover {
    color: var(--ink);
    background: rgba(15, 23, 42, 0.06);
}

.field-password-toggle:focus-visible {
    outline: 2px solid var(--blue-mid);
    outline-offset: 2px;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 4px 18px rgba(3, 105, 161, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(3, 105, 161, 0.35);
}

.submit-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.message-box {
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.message-box .flash-msg,
.message-box .flash-error,
.message-box .flash-success,
.message-box .flash-info {
    border-radius: 11px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.message-box .flash-error,
.message-box .flash-msg.flash-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.message-box .flash-success,
.message-box .flash-msg.flash-success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.message-box .flash-info,
.message-box .flash-msg.flash-info {
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.message-box .flash-message,
.message-box .flash-msg.flash-message {
    background: var(--bg3);
    color: var(--ink-mid);
    border: 1px solid var(--border);
}

#signup-result.message-box.error,
#signup-result.message-box.success {
    padding: 10px 14px;
    border-radius: 11px;
}

#signup-result.error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

#signup-result.success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.close-modal {
    position: absolute;
    right: 14px;
    top: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ink-dim);
    cursor: pointer;
    z-index: 20;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover { color: var(--ink); }

.modal-switch {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--ink-dim);
    text-align: center;
}

.modal-switch a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.modal-switch a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .auth-modal {
        min-height: auto;
        flex-direction: column;
    }

    .auth-modal-cols-track {
        grid-template-columns: 1fr;
        min-height: 0;
        flex: 1;
    }

    .modal-left { min-height: 180px; }

    /* On mobile reset the absolute positioning — use simple show/hide instead of slide */
    .modal-right {
        overflow: visible;
        position: static;
        min-height: 400px;
    }

    .auth-form-viewport {
        position: static;
        overflow: visible;
        inset: auto;
    }

    .auth-form-track {
        width: 100%;
        height: auto;
        flex-direction: column;
        transform: none !important;
        transition: none;
    }

    .auth-panel {
        width: 100%;
        padding: 24px 22px 20px;
        justify-content: flex-start;
        overflow-y: visible;
        height: auto;
    }

    /* On mobile hide the off-screen panel, show only the active one */
    .auth-panel--signup {
        display: none;
    }

    .auth-modal.auth-mode-signup .auth-panel--login {
        display: none;
    }

    .auth-modal.auth-mode-signup .auth-panel--signup {
        display: flex;
    }
}

