/* MicroClips theme; scoped to MiCORE home to preserve shared header/footer styles. */
.micore_home_page {
    --royal: #5264d9;
    --royal-dark: #4051bd;
    --ink: #30364b;
    --body: #var(--bg);
    --muted: #6f7890;
    --bg: #f6f8fd;
    --line: #e1e5f2;
    --card-a: #efedfc;
    --card-b: #eaf5fc;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background:#f6f8fd;
    color: var(--body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.micore_home_container,
.micore_home_container *,
.micore_home_demo_player,
.micore_home_demo_player * {
    box-sizing: border-box;
}

.micore_home_container {
    margin: 0;
    padding: clamp(24px, 4vw, 64px) clamp(20px, 7vw, 120px) clamp(36px, 6vw, 80px);
}

.micore_home_container :is(h1, h2, h3, p, ul) {
    margin: 0;
}

.micore_home_container a {
    text-decoration: none;
    color: inherit;
}

.micore_home_container :is(button, input),
.micore_home_demo_player button {
    font-family: inherit;
}

.micore_home_page [id^="micore_home_"] {
    scroll-margin-top: 96px;
}

.micore_home_container :is(button, a, input):focus-visible,
.micore_home_demo_player button:focus-visible {
    outline: 3px solid #7d89e4;
    outline-offset: 4px;
}

.micore_home_container :is(h1, h2, h3) {
    color: var(--ink);
    text-wrap: balance;
}

.micore_home_eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 700;
}

.micore_home_hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    width: auto;
    margin: 0;
    padding: clamp(24px, 4vw, 52px);
    text-align: left;
}

.micore_home_hero::after {
    display: none;
}

.micore_home_hero_copy {
    min-width: 0;
}

.micore_home_hero .micore_home_cta_row {
    justify-content: flex-start;
}

/* Right-side visual */
.micore_home_hero_visual {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 12px 6px 38px;
}

.micore_home_hero .micore_home_oiasys {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 44px;
    width: auto;
    max-width: 440px;
    margin: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Circular lines behind the cards */
.micore_home_orbits {
    position: absolute;
    z-index: -1;
    width: 78%;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(137, 150, 197, .18);
    border-radius: 50%;
    pointer-events: none;
}

.micore_home_orbits::before,
.micore_home_orbits::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.micore_home_orbits::before {
    inset: 12%;
    border: 3px solid rgba(137, 150, 197, .14);
}

.micore_home_orbits::after {
    inset: 29%;
    border: 4px solid rgba(255, 255, 255, .55);
}

/* Center diamond */
.micore_home_diamond {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: 58px;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 16px;
    background: linear-gradient(130deg, #9684cc, #76c1d5);
    box-shadow:
        0 0 0 9px rgba(175, 178, 224, .28),
        0 16px 40px rgba(104, 119, 179, .15);
}

/* Small cards */
.micore_home_hero .micore_home_orbit_card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px 20px;
    border: 1px solid #fff;
    border-radius: 20px;
    background: linear-gradient(130deg, #fff, #f6f4fd);
    box-shadow: 0 14px 32px rgba(98, 113, 158, .10);
}

.micore_home_orbit_card:nth-child(even) {
    transform: translateY(24px);
    background: linear-gradient(130deg, #fff, #edf8fc);
}

.micore_home_orbit_card:last-child {
    background: linear-gradient(130deg, #f4f9fd, #ebe7f8);
}

.micore_home_hero .micore_home_orbit_icon {
    display: grid;
    place-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #dfd5fa;
    border-radius: 12px;
    background: #ece6fb;
    color: #7864b7;
}

.micore_home_orbit_card:nth-child(even) .micore_home_orbit_icon {
    background: #e0f2fa;
    border-color: #c5e8f4;
    color: #488fa8;
}

.micore_home_orbit_icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.micore_home_hero .micore_home_orbit_card strong {
    color: var(--ink, #30364b);
    font-size: 14.5px;
    line-height: 1.35;
}

.micore_home_hero .micore_home_orbit_card span {
    color: #0825e3;
    font-size: 13px;
    letter-spacing: 1.6px;
    font-weight: 500;
}

/* Stack the visual below the text on smaller screens */
@media (max-width: 1050px) {
    .micore_home_hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .micore_home_hero .micore_home_oiasys {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .micore_home_orbit_card:nth-child(even) {
        transform: none;
    }

    .micore_home_orbits,
    .micore_home_diamond {
        display: none;
    }

    .micore_home_hero_visual {
        padding: 0;
    }
}

.micore_home_hero h1 {
    font-size: clamp(34px, 4.8vw, 52px);
    line-height: 1.12;
    font-weight: 600;
    margin: 20px 0;
    max-inline-size: 21ch;
}

.micore_home_hero p {
    font-size: 18.5px;
    max-inline-size: 62ch;
}

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


.micore_home_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .2s, box-shadow .2s;
}

.micore_home_container .micore_home_primary {
    background: #223ce3;
    color: #fff;
    box-shadow: 0 8px 22px rgba(82, 100, 217, .18);
}

.micore_home_container .micore_home_primary:hover {
    background: var(--royal-dark);
}

.micore_home_secondary {
    background: rgba(255, 255, 255, .8);
    color: var(--royal);
    border-color: #d5dbef;
}

.micore_home_secondary::before {
    content: "";
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.micore_home_secondary:hover {
    background: #fff;
    box-shadow: 0 5px 18px rgba(78, 88, 143, .08);
}

.micore_home_oiasys {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0 0;
    padding: 8px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 24px;
    background: rgba(255, 255, 255, .65);
}

.micore_home_oiasys>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    border-radius: 16px;
    text-align: center;
}

.micore_home_oiasys>div:nth-child(odd) {
    background: rgba(239, 237, 252, .75);
}

.micore_home_oiasys>div:nth-child(even) {
    background: rgba(234, 245, 252, .75);
}

.micore_home_oiasys strong {
    font-size: 14.5px;
    color: var(--ink);
}

.micore_home_oiasys span {
    font-size: 13px;
    color: var(--royal);
    letter-spacing: 1.6px;
}

.micore_home_section {
    padding-top: clamp(38px, 5vw, 64px);
}

.micore_home_section_head {
    text-align: left;
    margin-bottom: 26px;
}

.micore_home_section_head h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    margin: 12px 0;
}

.micore_home_section_head p {
    font-size: 17px;
    max-inline-size: 80ch;
}

.micore_home_chat_shell {
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dbe1f1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(83, 96, 157, .08);
}

.micore_home_chat_top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(105deg, #ded7f27d, #c2dbe870);
}

.micore_home_mark {
    display: grid;
    place-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: black;
    color: #fff;
    font-weight: 800;
}

.micore_home_chat_top h3 {
    font-size: 18px;
    font-weight: 800;
}

.micore_home_chat_top p {
    font-size: 13px;
    color: var(--muted);
}

.micore_home_agent_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.micore_home_pill_btn {
    padding: 8px 18px;
    border: 1px solid #d7def0;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--body);
    cursor: pointer;
}

.micore_home_pill_btn:hover {
    border-color: #9aa7e2;
    background: #f4f3fd;
}

.micore_home_pill_btn.micore_home_on {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
}

/* Correct selector for the existing chat-body element. */
.micore_home_chat_body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-block-size: 420px;
    overflow-y: auto;
}

.micore_home_msg {
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 14.5px;
    max-inline-size: 78%;
    overflow-wrap: anywhere;
}

.micore_home_msg.micore_home_bot {
    background: linear-gradient(110deg, #f3f1fc, #eef6fd);
    border: 1px solid #e3e6f4;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.micore_home_msg.micore_home_me {
    background: var(--royal);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.micore_home_who {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.micore_home_examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 28px 18px;
}

.micore_home_examples:empty {
    display: none;
}

.micore_home_ex {
    padding: 8px 14px;
    border: 1px solid #d9dff1;
    border-radius: 999px;
    background: #f8faff;
    font-size: 12.5px;
    color: var(--royal);
    cursor: pointer;
    white-space: normal;
    text-align: left;
}

.micore_home_ex:hover {
    background: var(--card-a);
    border-color: #aab5e5;
}

.micore_home_chat_input {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--line);
}

.micore_home_chat_input input {
    flex: 1;
    min-inline-size: 0;
    padding: 14px 18px;
    border: 1px solid #202022;
    border-radius: 999px;
    background: #fafbff;
    font-size: 15px;
    color: var(--ink);
}

.micore_home_chat_input button {
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: #1452e6;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.micore_home_chat_input :disabled {
    cursor: not-allowed;
}

.micore_home_preview_note {
    padding: 0 28px 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.micore_home_cards3,
.micore_home_cards2,
.micore_home_ladder,
.micore_home_gov_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

.micore_home_card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 26px;
    background:#d3cee561;
    box-shadow: 0 10px 30px rgba(85, 95, 148, .05);
    transition: transform .3s, box-shadow .3s;
}

.micore_home_card:nth-child(2) {
    background: #dde5f496;
}

.micore_home_card:nth-child(3) {
    background: #eef0fd;
}

.micore_home_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(85, 95, 148, .1);
}

.micore_home_kind {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #e0e4f3;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 700;
    color: #2563eb;
}

.micore_home_card h3 {
    font-size: 27px;
    font-weight: 600;
    margin: 20px 0 12px;
}

.micore_home_gpt {
    color: #2563eb;
}

.micore_home_card p {
    font-size: 15.5px;
    margin-bottom: 22px;
}

.micore_home_under {
    margin-top: auto;
    padding: 16px 0 0;
    border-top: 1px solid #d9dded;
    font-size: 13.5px;
}

.micore_home_under b {
    color: var(--ink);
}

.micore_home_frame {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid #fff;
    border-radius: 28px;
    background: linear-gradient(115deg, #eeebfc, #e5f3fc);
    box-shadow: 0 12px 38px rgba(85, 95, 148, .06);
}

.micore_home_frame h2 {
    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
    margin: 12px 0;
}

.micore_home_ladder {
    margin-top: 28px;
}

.micore_home_rung {
    padding: 24px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid #fff;
    border-radius: 20px;
}

.micore_home_rung::before {
    content: "";
    display: block;
    margin-bottom: 18px;
    inline-size: 28px;
    block-size: 4px;
    background: #8690de;
    border-radius: 999px;
}

.micore_home_rung:nth-child(2)::before {
    background: #79b9d9;
}

.micore_home_rung:nth-child(3)::before {
    background: #a298d7;
}

.micore_home_rung h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 10px;
}

.micore_home_rung p {
    font-size: 14px;
}

.micore_home_container .micore_home_thesis {
    display: inline-block;
    margin-top: 24px;
    font-weight: 700;
    color: #2563eb;
}

.micore_home_thesis:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.micore_home_gov {
    padding: 26px;
    border: 1px solid #e3e7f2;
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
}

.micore_home_gov h3 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 12px;
}

.micore_home_gov p,
.micore_home_gov li {
    font-size: 14px;
}

.micore_home_gov ul {
    list-style: none;
    padding: 0;
}

.micore_home_gov li {
    position: relative;
    padding: 4px 0 4px 18px;
}

.micore_home_gov li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background: #8b96df;
}

.micore_home_lens {
    margin-top: 52px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid #fff;
    border-radius: 28px;
    background:#c9d5eb61;
    color: var(--body);
}

.micore_home_lens h2 {
    font-size: 27px;
    font-weight: 600;
    margin: 12px 0;
}

.micore_home_lens p {
    font-size: 16px;
    max-inline-size: 80ch;
}

.micore_home_lens_flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.micore_home_lens_flow span {
    padding: 10px 18px;
    border: 1px solid #dde2f2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
}

.micore_home_style_1 {
    font-size: 15.5px;
}

.micore_home_style_2 {
    font-weight: 400;
    color: var(--muted);
    font-size: 13px;
}

.micore_home_gov .micore_home_style_3 {
    margin-top: 8px;
}

.micore_home_style_4 {
    color:#2563eb;
}

/* Keep the existing demo IDs and JS hooks. Respect hidden until JS opens it. */
.micore_home_demo_player {
    margin: 0 clamp(20px, 7vw, 120px) 36px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(85, 95, 148, .1);
}

.micore_home_demo_player[hidden],
.micore_home_demo_status[hidden] {
    display: none;
}

.micore_home_demo_toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.micore_home_demo_toolbar strong {
    margin-right: auto;
    color: var(--ink);
}

.micore_home_demo_toolbar button {
    padding: 8px 16px;
    border: 1px solid #dce2f1;
    border-radius: 999px;
    background: #f4f3fd;
    color: var(--royal);
    cursor: pointer;
}

.micore_home_demo_media :is(video, iframe) {
    display: block;
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 16px;
    background: #f1f3fb;
}

.micore_home_demo_media:fullscreen {
    display: grid;
    place-items: center;
    background: #161824;
}

.micore_home_demo_status {
    margin-bottom: 0;
    color: var(--body);
}

@media (max-width: 1100px) {

    .micore_home_cards3,
    .micore_home_ladder,
    .micore_home_gov_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .micore_home_cards3> :last-child,
    .micore_home_ladder> :last-child {
        grid-column: 1 / -1;
    }

    .micore_home_card {
        padding: 26px;
    }
}

@media (max-width: 700px) {
    .micore_home_container {
        padding: 24px 20px 36px;
    }

    .micore_home_hero {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .micore_home_hero h1 {
        font-size: 34px;
    }

    .micore_home_hero .micore_home_eyebrow {
        letter-spacing: 1.5px;
    }

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

    .micore_home_cards3,
    .micore_home_cards2,
    .micore_home_ladder,
    .micore_home_gov_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .micore_home_chat_top,
    .micore_home_chat_body {
        padding: 20px;
    }

    .micore_home_agent_pills {
        margin-left: 0;
        flex-basis: 100%;
    }

    .micore_home_chat_input {
        padding: 16px 20px;
        gap: 8px;
    }

    .micore_home_chat_input button {
        padding: 12px 18px;
    }

    .micore_home_examples {
        padding: 0 20px 16px;
    }

    .micore_home_preview_note {
        padding: 0 20px 18px;
    }

    .micore_home_msg {
        max-inline-size: 100%;
    }

    .micore_home_demo_player {
        margin-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .micore_home_container *,
    .micore_home_container *::before,
    .micore_home_container *::after {
        transition: none;
        scroll-behavior: auto;
    }

    .micore_home_card:hover {
        transform: none;
    }
}