/* =========================================================
   SYSTEM PAGE — system.css
   Extends styles.css (shared nav, typography tokens, etc.)
   ========================================================= */

/* ─── Page baseline ───────────────────────────────────────── */
.sys-page {
    background: #fff;
    color: #111;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── Shared containers ───────────────────────────────────── */
.sys-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.sys-text-center {
    text-align: center;
}

/* ─── Typography helpers ──────────────────────────────────── */
.sys-h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 14px;
}

.sys-body {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(17, 17, 17, 0.58);
    margin-bottom: 18px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.sys-body--lead {
    font-size: 17px;
    color: rgba(17, 17, 17, 0.65);
    margin-bottom: 22px;
}

.sys-italic {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    color: #333;
    line-height: 1.65;
    margin: 24px auto;
    max-width: 600px;
}

.sys-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 28px;
    max-width: 580px;
    text-align: left;
}

.sys-list li {
    font-size: 15.5px;
    color: rgba(17, 17, 17, 0.6);
    line-height: 1.65;
    padding: 9px 0 9px 28px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sys-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.45);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.sys-hero {
    position: relative;
    padding: 140px 24px 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    background: #fff;
}

.sys-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 85%, rgba(147, 51, 234, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 50% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sys-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* Quote */
.sys-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(17, 17, 17, 0.4);
    letter-spacing: -0.01em;
}

/* H1 */
.sys-h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #111;
}

.sys-h1-light {
    color: rgba(17, 17, 17, 0.35);
}

/* Sub */
.sys-hero-sub {
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(17, 17, 17, 0.52);
    line-height: 1.7;
    max-width: 560px;
}

/* ─── Alison circle size ────────────────────────────────── */
.alison-circle {
    position: relative;
    width: 190px;
    height: 190px;
    max-width: 88vw;
    margin: 20px auto 0;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .alison-circle {
        width: 150px;
        height: 150px;
    }
}


/* ─── Animated orb ─────────────────────────────────────────── */
.sys-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.18);
    animation: orbPulse 3s ease-in-out infinite;
}

.sys-orb-ring--2 {
    inset: 24px;
    border-color: rgba(124, 58, 237, 0.14);
    animation-delay: 0.6s;
}

.sys-orb-ring--3 {
    inset: 50px;
    border-color: rgba(124, 58, 237, 0.10);
    animation-delay: 1.2s;
}

@keyframes orbPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.sys-orb-core {
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f0ff 0%, #ede9fe 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.15), 0 0 120px rgba(124, 58, 237, 0.06);
}

.sys-orb-icon {
    width: 64%;
    height: 64%;
}

/* ─── Lottie core sizing ─────────────────────────────────── */
.alison-lottie {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    display: block;
}

/* Floating signal nodes */
.sys-node {
    position: absolute;
    font-size: 18px;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    animation: nodeFloat 4s ease-in-out infinite;
}

.sys-node--sleep {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.sys-node--heart {
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.sys-node--brain {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.sys-node--run {
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    animation-delay: 3s;
}

@keyframes nodeFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.sys-node--heart {
    animation-name: nodeFloatY;
}

.sys-node--run {
    animation-name: nodeFloatY;
}

@keyframes nodeFloatY {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-6px);
    }
}

/* ═══════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════ */
.sys-section {
    padding: 96px 0;
    background: #fff;
}

.sys-section--alt {
    background: #fafaf9;
}

/* ─── Role header ───────────────────────────────────────── */
.sys-role-header {
    text-align: center;
    margin-bottom: 40px;
}

.sys-role-sub {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   LOOP DIAGRAM
═══════════════════════════════════════ */
.sys-loop-wrap {
    background: #fafaf9;
    padding: 56px 24px;
}

.sys-loop-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sys-loop-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: 18px;
    min-width: 100px;
    text-align: center;
}

.sys-loop-icon {
    font-size: 24px;
    line-height: 1;
}

.sys-loop-label {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.sys-loop-step--purple {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.sys-loop-step--blue {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.sys-loop-step--amber {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
}

.sys-loop-step--green {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
}

.sys-loop-step--rose {
    background: rgba(244, 63, 94, 0.08);
    color: #e11d48;
}

.sys-loop-arrow {
    font-size: 22px;
    color: rgba(17, 17, 17, 0.2);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   MINDMAP DIAGRAM
═══════════════════════════════════════ */
.sys-mindmap {
    margin: 48px auto 0;
    max-width: 780px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.sys-mm-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 2px solid rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    color: #6d28d9;
    line-height: 1.25;
    box-shadow: 0 0 32px rgba(124, 58, 237, 0.12);
}

.sys-mm-center--clinical {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    box-shadow: 0 0 32px rgba(37, 99, 235, 0.10);
}

.sys-mm-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sys-mm-node {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f5f5f3;
    color: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, background 0.2s;
}

.sys-mm-node:hover {
    transform: translateY(-2px);
    background: #ede9fe;
    color: #6d28d9;
}




.sys-mindmap--clinical .sys-mm-node:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.sys-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 40px 24px;
    background: #fff;
}

.sys-footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.sys-footer-inner a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.sys-footer-inner a:hover {
    color: #111;
}

/* ═══════════════════════════════════════
   FIXED WAITLIST BUTTON
═══════════════════════════════════════ */
.sys-waitlist-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #1c1c1e;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}

.sys-waitlist-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
    .sys-hero {
        padding-top: 120px;
    }

    .sys-section {
        padding: 64px 0;
    }

    .sys-loop-container {
        gap: 8px;
    }

    .sys-loop-arrow {
        font-size: 16px;
    }

    .sys-mindmap {
        padding: 28px 20px;
    }
}

/* ═══════════════════════════════════════
   ALISON CIRCLE (7-dot cycling ring)
═══════════════════════════════════════ */
.alison-circle {
    position: relative;
    width: 520px;
    height: 520px;
    max-width: 90vw;
    margin: 32px auto 0;
    flex-shrink: 0;
}

/* The SVG ring fills the whole box */
.alison-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* The dot is a class handle for CSS transitions */
.alison-dot {
    transition: fill 0.5s ease, r 0.4s ease;
}

/* ── Central canvas orb ──────────────────────────────────── */
.alison-core {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alison-canvas {
    width: 55%;
    height: 55%;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(ellipse at 40% 35%, #f5f0ff 0%, #e9e2ff 40%, #ddd6fe 100%);
    box-shadow:
        0 0 60px rgba(124, 58, 237, 0.18),
        0 0 120px rgba(124, 58, 237, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
}


/* ── Label positioning base ──────────────────────────────── */
.alison-label {
    position: absolute;
    width: 130px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(17, 17, 17, 0.32);
    opacity: 0.4;
    transition: opacity 0.5s ease, color 0.5s ease, font-weight 0.3s ease;
    pointer-events: none;
}

.alison-label--active {
    color: rgba(17, 17, 17, 0.85);
    font-weight: 700;
    opacity: 1;
}

.alison-label--faded {
    color: rgba(17, 17, 17, 0.32);
    font-weight: 400;
    opacity: 0.35;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .alison-circle {
        width: 320px;
        height: 320px;
    }

    .alison-label {
        font-size: 10px;
        width: 90px;
    }
}

/* ═══════════════════════════════════════
   AGENTIC MINDMAP (AMM)
═══════════════════════════════════════ */
.amm-outer {
    position: relative;
    width: 100%;
    background: radial-gradient(circle at 40% 40%, #1e1b4b 0%, #0f172a 70%);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 36px;
    font-family: 'Manrope', sans-serif;
}

.amm-inner {
    width: 920px;
    height: 560px;
    position: relative;
    transform-origin: top left;
}

/* Animated dashed paths */
.amm-path {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 6 10;
    animation: amm-flow 1.2s linear infinite;
}

.amm-path--thick {
    stroke-width: 3.5;
    stroke-dasharray: 8 14;
    animation-duration: 1s;
}

@keyframes amm-flow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -32;
    }
}

/* ── Node boxes ───────────────────────────────────────── */
.amm-node {
    position: absolute;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    /* positions set inline as top: y-h/2, left: x-w/2 */
    padding: 6px 10px;
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.amm-node--sm {
    width: 90px;
    height: 38px;
}

.amm-node--lg {
    width: 190px;
    height: 68px;
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.45);
    font-size: 13px;
    font-weight: 600;
    white-space: normal;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.18);
}

.amm-node--lg small {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 3px;
    white-space: normal;
    text-align: center;
}

.amm-node--dash {
    box-shadow: 0 0 36px rgba(99, 102, 241, 0.28);
}

/* ── Floating labels (escalation, return) ─────────────── */
.amm-label {
    position: absolute;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    width: 200px;
    transform: translateX(-50%);
    animation: amm-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.amm-label--sm {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    animation-delay: 0.8s;
}

@keyframes amm-pulse {

    0%,
    100% {
        opacity: 0.25;
    }

    40%,
    60% {
        opacity: 1;
    }
}

/* ── Chat bubbles ─────────────────────────────────────── */
.amm-chat {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 130px;
    overflow: hidden;
    /* horizontal pos set inline */
}

.amm-bubble {
    border-radius: 10px;
    padding: 7px 10px;
    max-width: 260px;
    flex-shrink: 0;
    animation: amm-bubble-in 0.25s ease both;
}

@keyframes amm-bubble-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.amm-bubble--alison {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    align-self: flex-start;
}

.amm-bubble--user {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    align-self: flex-end;
}

.amm-bubble--expert {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    align-self: flex-end;
}

.amm-bubble-speaker {
    font-size: 8.5px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
    font-weight: 600;
}

.amm-bubble-text {
    font-size: 10.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    white-space: pre-line;
}

/* ── Steps row (bottom strip) ─────────────────────────── */
.amm-steps {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.amm-step {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.amm-step span {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.amm-step p {
    margin: 3px 0 0;
    font-size: 9.5px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.amm-arrow {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* Responsive: scale the whole diagram on narrow viewports */
@media (max-width: 700px) {
    .amm {
        aspect-ratio: 920 / 600;
    }
}