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

html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

:root {
    --bg: #f7efe2;
    --panel: #fffaf1;
    --panel-2: #f6eddc;
    --line: #dcc5a0;
    --text: #1d2740;
    --muted: #6f7891;
    --gold: #c9891d;
    --gold-2: #e5b45a;
    --sky: #31548a;
    --mint: #2e7c69;
    --rose: #c96d5e;
    --ink: #111a2d;
}

body {
    font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        linear-gradient(rgba(20, 34, 59, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 34, 59, 0.02) 1px, transparent 1px),
        radial-gradient(circle at top right, rgba(49,84,138,0.12), transparent 28%),
        radial-gradient(circle at left top, rgba(201,137,29,0.16), transparent 22%),
        linear-gradient(180deg, #fbf5ea 0%, #eedfca 100%);
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.28s ease, color 0.28s ease;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(26, 34, 54, 0.08);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(201,137,29,0.78), rgba(49,84,138,0.72));
    border-radius: 999px;
    border: 2px solid rgba(252, 247, 238, 0.9);
}

body[data-theme="dark"] {
    --bg: #0d1528;
    --panel: #12203a;
    --panel-2: #182845;
    --line: #324563;
    --text: #e9eef8;
    --muted: #9dafcf;
    --gold: #e4b057;
    --gold-2: #f1c97a;
    --sky: #8ab8ff;
    --mint: #76c8b3;
    --rose: #f2a18f;
    --ink: #0e1628;
    background:
        radial-gradient(circle at top right, rgba(138,184,255,0.14), transparent 28%),
        radial-gradient(circle at left top, rgba(228,176,87,0.12), transparent 22%),
        linear-gradient(180deg, #09111f 0%, #101a2d 100%);
}

body[data-theme="dark"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"]::-webkit-scrollbar-thumb {
    border-color: rgba(9, 17, 31, 0.92);
}

.app-header {
    background: rgba(251, 246, 237, 0.88);
    backdrop-filter: blur(14px);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(201, 137, 29, 0.18);
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.brand-mark-btn {
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

.brand-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 28px;
    box-shadow: 0 14px 30px rgba(85, 62, 27, 0.16);
}

.theme-toggle {
    border: 1px solid rgba(49, 84, 138, 0.18);
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(246, 235, 213, 0.95));
    color: #36517f;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(93, 74, 42, 0.06);
}

.app-kicker {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 4px;
}

.app-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3px;
}

.app-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.app-version {
    font-size: 12px;
    color: #4d6288;
    border: 1px solid rgba(201, 137, 29, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(246, 235, 213, 0.95));
    box-shadow: 0 8px 18px rgba(93, 74, 42, 0.06);
}

.app-body {
    max-width: min(1520px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 28px 18px 56px;
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(246, 236, 217, 0.97)),
        radial-gradient(circle at right top, rgba(201, 137, 29, 0.12), transparent 34%),
        radial-gradient(circle at 15% 12%, rgba(139, 196, 255, 0.08), transparent 24%);
    border: 1px solid rgba(201, 137, 29, 0.18);
    border-radius: 28px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 22px;
    margin-bottom: 22px;
    box-shadow: 0 20px 44px rgba(61, 47, 31, 0.08);
}

.hero-label,
.section-title,
.input-label {
    font-size: 11px;
    color: var(--sky);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: 40px;
    line-height: 1.06;
    color: #1a2840;
    margin: 10px 0 14px;
    max-width: 12ch;
}

.hero-copy p {
    font-size: 16px;
    line-height: 1.75;
    color: #66758c;
    max-width: 62ch;
}

.hero-copy h1 {
    text-wrap: balance;
}

.hero-stage {
    min-height: 260px;
    width: min(420px, 100%);
    justify-self: end;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 225, 161, 0.55), rgba(255, 225, 161, 0) 33%),
        linear-gradient(135deg, rgba(19, 32, 58, 0.96), rgba(31, 48, 83, 0.92));
    border: 1px solid rgba(201, 137, 29, 0.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-stage-halo,
.hero-stage-orbit,
.hero-stage-core,
.brand-story-ring,
.brand-story-core,
.brand-story-stars {
    position: absolute;
}

.hero-stage-halo {
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,196,93,0.25), rgba(247,196,93,0) 65%);
    filter: blur(4px);
}

.hero-stage-orbit {
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.24);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-spin 18s linear infinite;
}

.hero-stage-orbit--one {
    width: 120px;
    height: 120px;
}

.hero-stage-orbit--two {
    width: 160px;
    height: 94px;
    animation-duration: 13s;
}

.hero-stage-orbit--three {
    width: 84px;
    height: 84px;
    animation-duration: 9s;
    border-color: rgba(247,196,93,0.35);
}

.hero-stage-core {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    left: calc(50% - 21px);
    top: calc(50% - 21px);
    background: radial-gradient(circle at 35% 35%, #fff7db, #f0b244 62%, #e08925 100%);
    box-shadow: 0 0 20px rgba(247,196,93,0.45);
}

.hero-stage-caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: rgba(255,248,229,0.84);
    font-size: 12px;
    letter-spacing: 1px;
}

.input-panel,
.payment-card,
.outcome-card,
.story-card,
.cp-hero,
.cp-detail,
.cp-card,
.cp-explainer {
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.99), rgba(248, 239, 225, 0.98));
    border: 1px solid rgba(201, 137, 29, 0.14);
    border-radius: 22px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 14px;
}

.mission-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    margin: 0 0 24px;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 251, 244, 0.98), rgba(247, 238, 224, 0.97)),
        radial-gradient(circle at 80% 20%, rgba(228,176,87,0.12), transparent 26%);
    border: 1px solid rgba(201, 137, 29, 0.14);
    box-shadow: 0 20px 44px rgba(61, 47, 31, 0.08);
}

.mission-copy h2 {
    font-size: 34px;
    line-height: 1.1;
    color: #1a2840;
    margin: 10px 0 14px;
    max-width: 18ch;
}

.mission-copy p {
    color: #66758c;
    line-height: 1.8;
    margin-top: 12px;
    max-width: 60ch;
}

.mission-visual {
    display: grid;
    align-content: center;
    gap: 14px;
}

.mission-visual-frame {
    position: relative;
    min-height: 320px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 217, 140, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(247, 239, 223, 0.98), rgba(231, 216, 186, 0.96));
    border: 1px solid rgba(201, 137, 29, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 24px 48px rgba(61, 47, 31, 0.12);
}

.mission-logo,
.mission-orbit,
.mission-glow {
    position: absolute;
}

.mission-logo {
    width: 72%;
    left: 14%;
    top: 12%;
    z-index: 3;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 14px 28px rgba(85, 62, 27, 0.16));
}

.mission-orbit {
    border-radius: 50%;
    border: 1.5px solid rgba(156, 123, 63, 0.24);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-spin 22s linear infinite;
}

.mission-orbit--one {
    width: 220px;
    height: 220px;
}

.mission-orbit--two {
    width: 280px;
    height: 160px;
    animation-duration: 15s;
    border-color: rgba(228,176,87,0.22);
}

.mission-orbit--three {
    width: 150px;
    height: 150px;
    animation-duration: 11s;
    border-color: rgba(138,184,255,0.24);
}

.mission-glow {
    inset: 16% 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,196,93,0.18), rgba(247,196,93,0) 66%);
    filter: blur(8px);
}

.mission-tribute {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: auto;
}

.mission-caption {
    color: #546683;
    line-height: 1.7;
    font-size: 14px;
}

.story-card {
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-align: left;
    color: var(--text);
    transition: transform 0.18s, border-color 0.18s;
}

.story-card:hover,
.story-card:focus {
    transform: translateY(-2px);
    border-color: rgba(201, 137, 29, 0.26);
}

.story-visual {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    flex: 0 0 74px;
    border: 1px solid rgba(201, 137, 29, 0.12);
    background: rgba(255, 247, 234, 0.92);
    position: relative;
}

.story-visual::before,
.story-visual::after {
    content: "";
    position: absolute;
}

.story-visual--chart::before {
    inset: 12px;
    border: 2px solid rgba(201, 137, 29, 0.72);
    transform: rotate(45deg);
}

.story-visual--signature::before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(201, 137, 29, 0.92);
    top: 14px;
    left: 14px;
}

.story-visual--signature::after {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(49, 84, 138, 0.48);
    border-radius: 50%;
    right: 10px;
    bottom: 10px;
}

.story-visual--consult::before {
    inset: 16px 18px auto 18px;
    height: 14px;
    border-radius: 999px;
    background: rgba(49, 84, 138, 0.84);
}

.story-visual--consult::after {
    inset: auto 18px 16px 18px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201,137,29,0.88), rgba(201,109,94,0.78));
}

.story-copy {
    display: grid;
    gap: 6px;
}

.story-copy strong {
    font-size: 18px;
    color: #1a2840;
}

.story-copy small {
    color: var(--muted);
    line-height: 1.6;
}

.story-explain {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 236, 218, 0.96));
    border: 1px solid rgba(201, 137, 29, 0.12);
    color: #3b4a67;
    line-height: 1.7;
    min-height: 82px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.input-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.input-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.input-panel-title {
    font-size: 24px;
    color: #17233a;
    margin-top: 6px;
}

.input-panel-note,
.action-strip-note,
.payment-help,
.signature-help,
.prashna-note {
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.input-group--prashna {
    flex: 1;
}

.input-panel input,
.signature-textarea {
    width: 100%;
    background: rgba(255, 253, 248, 0.95);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
}

.input-panel input::placeholder,
.signature-textarea::placeholder {
    color: #8e94a8;
}

.input-panel input:focus,
.signature-textarea:focus {
    border-color: rgba(201, 137, 29, 0.58);
    box-shadow: 0 0 0 3px rgba(201, 137, 29, 0.10);
}

#loadTransit,
.primary-action,
.secondary-action,
.ghost-action,
.signature-close {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

#loadTransit,
.primary-action {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: var(--ink);
    border: 1px solid rgba(201, 137, 29, 0.34);
    padding: 13px 18px;
}

.secondary-action {
    background: rgba(49, 84, 138, 0.08);
    color: var(--sky);
    border: 1px solid rgba(49, 84, 138, 0.20);
    padding: 13px 18px;
}

.ghost-action,
.signature-close {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(111, 120, 145, 0.26);
    padding: 13px 18px;
}

#loadTransit:hover,
.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.signature-close:hover {
    transform: translateY(-1px);
}

.action-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 137, 29, 0.12);
}

.prashna-display {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 249, 239, 0.94);
    border: 1px solid rgba(201, 137, 29, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    flex-wrap: wrap;
}

.prashna-badge {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.prashna-question {
    font-size: 15px;
    color: #1a2840;
    flex: 1;
}

.next-journey {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(99, 127, 184, 0.14);
}

.next-journey-title {
    font-size: 22px;
    color: #18233d;
    margin: 8px 0 14px;
}

.next-journey-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.journey-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(238, 244, 255, 0.92));
    border: 1px solid rgba(99, 127, 184, 0.16);
    box-shadow: 0 16px 30px rgba(35, 47, 77, 0.08);
}

.journey-card-kicker {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 6px;
    font-weight: 700;
}

.journey-card-title {
    font-size: 24px;
    color: #18233d;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.journey-card p {
    color: var(--muted);
    line-height: 1.7;
}

.payment-frame {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.payment-card,
.outcome-card {
    padding: 22px;
}

.payment-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.payment-title,
.outcome-title,
.signature-title {
    font-size: 24px;
    color: #18233d;
    margin-top: 6px;
}

.payment-price {
    font-size: 18px;
    color: var(--gold);
    border: 1px solid rgba(201, 137, 29, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 247, 233, 0.88);
}

.payment-grid,
.signature-columns {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
}

.qr-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    width: 100%;
    min-height: 220px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(242, 229, 207, 0.96));
    border: 1px dashed rgba(49, 84, 138, 0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.premium-qr {
    border-color: rgba(201, 137, 29, 0.24);
}

.qr-box {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(201,137,29,0.18) 25%, transparent 25%, transparent 50%, rgba(201,137,29,0.18) 50%, rgba(201,137,29,0.18) 75%, transparent 75%),
        linear-gradient(rgba(49,84,138,0.15) 25%, transparent 25%, transparent 50%, rgba(49,84,138,0.15) 50%, rgba(49,84,138,0.15) 75%, transparent 75%),
        #f6eddb;
    background-size: 22px 22px;
    border: 1px solid rgba(201, 137, 29, 0.18);
}

.qr-caption {
    color: var(--muted);
    font-size: 12px;
}

.payment-copy {
    display: grid;
    gap: 12px;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 252, 246, 0.94);
    border: 1px solid rgba(201, 137, 29, 0.10);
    border-radius: 12px;
    padding: 12px 14px;
}

.payment-line span {
    color: var(--muted);
}

.payment-line strong {
    color: #1a2840;
    text-align: right;
}

.payment-actions,
.signature-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wide-action {
    width: 100%;
}

.two-col {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 24px;
    align-items: start;
}

.col-left,
.col-right {
    min-width: 0;
}

.col-left {
    background: linear-gradient(180deg, rgba(20, 31, 56, 0.98), rgba(24, 39, 71, 0.96));
    border: 1px solid rgba(84, 110, 164, 0.22);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 24px 44px rgba(16, 23, 38, 0.18);
}

.col-left .section-title {
    color: rgba(237, 226, 194, 0.84);
}

.col-right {
    position: sticky;
    top: 96px;
}

#northChart {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 30px rgba(75, 62, 42, 0.12);
}

#planetTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 16px;
    background: linear-gradient(180deg, rgba(17, 27, 49, 0.95), rgba(22, 35, 64, 0.95));
    border: 1px solid rgba(101, 129, 184, 0.18);
    border-radius: 16px;
    overflow: hidden;
}

#planetTable th {
    background: rgba(32, 49, 84, 0.98);
    color: rgba(223, 233, 255, 0.74);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(201, 137, 29, 0.12);
}

#planetTable td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(101, 129, 184, 0.10);
    color: #e7eefc;
}

#planetTable th:last-child,
#planetTable td:last-child {
    text-align: center;
    min-width: 64px;
}

#planetTable tr:last-child td {
    border-bottom: none;
}

#planetTable tr:hover td {
    background: rgba(99, 128, 184, 0.10);
}

.signature-modal {
    position: fixed;
    inset: 0;
    background: rgba(38, 34, 28, 0.30);
    backdrop-filter: blur(8px);
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.signature-card {
    width: min(900px, 100%);
    background: linear-gradient(180deg, rgba(255, 251, 243, 0.99), rgba(248, 239, 225, 0.98));
    border: 1px solid rgba(201, 137, 29, 0.18);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(72, 56, 34, 0.16);
}

.signature-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.signature-column {
    display: grid;
    gap: 12px;
}

.signature-column-title {
    font-size: 15px;
    color: var(--gold);
}

.signature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signature-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(49, 84, 138, 0.08);
    border: 1px solid rgba(49, 84, 138, 0.14);
    color: #294a7c;
    font-size: 13px;
}

.signature-textarea {
    min-height: 120px;
    resize: vertical;
}

.signature-mismatch {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(201, 109, 94, 0.22);
    background: rgba(201, 109, 94, 0.08);
    color: #8b4438;
    line-height: 1.7;
}

.cp-shell {
    display: grid;
    gap: 16px;
}

.cp-hero {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 16px;
    align-items: center;
}

.cp-eyebrow {
    font-size: 11px;
    color: var(--sky);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cp-title {
    font-size: 24px;
    color: #1a2840;
    margin-bottom: 8px;
}

.cp-copy {
    color: var(--muted);
    line-height: 1.65;
}

.cp-orbit {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto;
}

.cp-orbit-core,
.cp-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.cp-orbit-core {
    inset: 35px;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(201, 137, 29, 0.24);
}

.cp-orbit-ring--one {
    border: 2px solid rgba(49, 84, 138, 0.40);
}

.cp-orbit-ring--two {
    inset: 12px;
    border: 2px solid rgba(201, 137, 29, 0.24);
}

.cp-explainers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cp-explainer {
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    text-align: left;
    color: var(--text);
}

.cp-explainer-visual {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex: 0 0 52px;
    border: 1px solid rgba(201, 137, 29, 0.12);
    position: relative;
    background: rgba(255, 247, 233, 0.92);
}

.cp-explainer-visual::before,
.cp-explainer-visual::after {
    content: "";
    position: absolute;
}

.cp-explainer-visual--resonance::before {
    inset: 11px;
    border: 2px solid rgba(201, 137, 29, 0.72);
    border-radius: 50%;
}

.cp-explainer-visual--angular::before {
    inset: 12px 24px 12px 24px;
    background: rgba(49, 84, 138, 0.84);
}

.cp-explainer-visual--angular::after {
    inset: 24px 12px 24px 12px;
    background: rgba(201, 137, 29, 0.76);
}

.cp-explainer-visual--cluster::before {
    width: 14px;
    height: 14px;
    background: rgba(49, 84, 138, 0.80);
    left: 10px;
    top: 18px;
    border-radius: 50%;
    box-shadow: 16px -10px 0 rgba(201,137,29,0.82), 24px 10px 0 rgba(46,124,105,0.80);
}

.cp-explainer-visual--signature::before {
    inset: 10px;
    border-radius: 14px;
    border: 2px solid rgba(201, 137, 29, 0.72);
}

.cp-explainer-visual--signature::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(49, 84, 138, 0.90);
    right: 8px;
    top: 8px;
}

.cp-explainer-text {
    display: grid;
    gap: 4px;
}

.cp-explainer-text strong {
    color: #1a2840;
    font-size: 15px;
}

.cp-explainer-text small {
    color: var(--muted);
    line-height: 1.45;
}

.cp-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
}

.cp-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cp-card {
    text-align: left;
    color: #eef4ff;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 24, 44, 0.98), rgba(19, 32, 58, 0.97));
    border: 1px solid rgba(94, 122, 179, 0.26);
    box-shadow: 0 18px 30px rgba(10, 15, 26, 0.24);
}

.cp-card.active {
    border-color: rgba(228, 176, 87, 0.42);
    box-shadow: 0 22px 34px rgba(10, 15, 26, 0.34);
}

.cp-card-band {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fffaf1;
    background: linear-gradient(90deg, rgba(34,49,83,0.96), rgba(49,84,138,0.88));
}

.cp-card-body {
    padding: 16px;
}

.cp-card-meta,
.cp-detail-source {
    margin-bottom: 10px;
}

.cp-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.4px;
    border: 1px solid rgba(99, 127, 184, 0.18);
    font-weight: 700;
}

.cp-source-badge--api {
    background: rgba(118, 200, 179, 0.14);
    color: #9ce0d0;
    border-color: rgba(118, 200, 179, 0.28);
}

.cp-source-badge--engine {
    background: rgba(228, 176, 87, 0.12);
    color: #f2cf92;
    border-color: rgba(228, 176, 87, 0.24);
}

.cp-source-badge--pending {
    background: rgba(138, 184, 255, 0.10);
    color: #bfd9ff;
}

.cp-card-date {
    font-size: 22px;
    color: #f4f7ff;
    margin-bottom: 8px;
}

.cp-card-score {
    color: #a9b9d8;
    margin-bottom: 10px;
}

.cp-card-score span {
    color: var(--gold);
    font-weight: 700;
}

.cp-card--signature .cp-card-score span {
    color: #b55a37;
}

.cp-card-summary {
    color: #d6e0f4;
    line-height: 1.65;
    min-height: 48px;
    margin-bottom: 12px;
}

.cp-card-tags,
.cp-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-res-locks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.cp-lock-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(99, 127, 184, 0.20);
}

.cp-lock-badge--ok {
    background: rgba(118, 200, 179, 0.12);
    color: #9ce0d0;
    border-color: rgba(118, 200, 179, 0.24);
}

.cp-lock-badge--miss {
    background: rgba(201, 109, 94, 0.14);
    color: #f1b1a5;
    border-color: rgba(201, 109, 94, 0.24);
}

.cp-lock-badge--gold {
    background: rgba(228, 176, 87, 0.12);
    color: #f2cf92;
    border-color: rgba(228, 176, 87, 0.24);
}

.cp-lock-badge--score {
    background: rgba(138, 184, 255, 0.10);
    color: #bfd9ff;
}

.cp-res-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 16px;
}

.cp-res-panel {
    background: rgba(9, 19, 36, 0.44);
    border: 1px solid rgba(99, 127, 184, 0.14);
    border-radius: 16px;
    padding: 14px;
}

.cp-res-title {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9bc3ff;
    margin: 0 0 10px;
}

.cp-tbl--compact {
    margin-bottom: 0;
}

.cp-tbl--compact th,
.cp-tbl--compact td {
    padding: 8px 10px;
    font-size: 12px;
}

.cp-res-metrics {
    display: grid;
    gap: 10px;
}

.cp-res-metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(18, 31, 56, 0.62);
    border: 1px solid rgba(99, 127, 184, 0.14);
}

.cp-res-metric span {
    color: #dbe5f8;
    font-size: 13px;
    font-weight: 600;
}

.cp-res-metric b {
    color: var(--gold);
    font-size: 14px;
}

.cp-res-metric small {
    grid-column: 1 / -1;
    color: #9db0d4;
    font-size: 11px;
}

.cp-mini-tag {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(201, 137, 29, 0.10);
}

.cp-mini-tag--signature {
    background: rgba(138, 184, 255, 0.12);
    color: #bfd9ff;
}

.cp-mini-tag--outer {
    background: rgba(118, 200, 179, 0.12);
    color: #9ce0d0;
}

.cp-mini-tag--inner {
    background: rgba(228, 176, 87, 0.12);
    color: #f2cf92;
}

.cp-mini-tag--cluster {
    background: rgba(242, 161, 143, 0.12);
    color: #f3b5a7;
}

.cp-card-prediction {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(94, 122, 179, 0.18);
    color: #dbe5f8;
    line-height: 1.55;
}

.cp-card-event {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.cp-card-event-kicker {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #9ec4ff;
    font-weight: 700;
    margin-bottom: 8px;
}

.cp-card-event-title {
    color: #f4f7ff;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.cp-card-event-copy {
    margin-top: 8px;
    color: #adc0e2;
    line-height: 1.6;
    font-size: 13px;
}

.cp-card-correlation {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(94, 122, 179, 0.18);
}

.cp-card-correlation-kicker {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #f2cf92;
    font-weight: 700;
}

.cp-card-correlation-copy {
    margin-top: 8px;
    color: #dbe5f8;
    line-height: 1.65;
    font-size: 13px;
}

.cp-card-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.cp-card-action {
    border-radius: 999px;
    border: 1px solid rgba(138, 184, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cp-pred-loading {
    color: #a9b9d8;
}

.cp-narr-block {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99, 127, 184, 0.12);
}

.cp-narr-head {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #9ec4ff;
    margin-bottom: 6px;
    font-weight: 700;
}

.cp-narr-copy,
.cp-narr-p {
    color: #dbe5f8;
    line-height: 1.5;
    font-size: 13px;
}

.cp-narr-block--parallel {
    background: linear-gradient(180deg, rgba(9, 19, 36, 0.82), rgba(18, 33, 62, 0.88));
    border-color: rgba(228, 176, 87, 0.24);
    box-shadow: inset 0 0 0 1px rgba(228, 176, 87, 0.08);
}

.cp-narr-block--parallel .cp-narr-head {
    color: #f2cf92;
}

.cp-narr-block--time {
    background: rgba(118, 200, 179, 0.08);
    border-color: rgba(118, 200, 179, 0.18);
}

.cp-narr-block--time .cp-narr-head {
    color: #9ce0d0;
}

.cp-narr-block--historical {
    background: rgba(138, 184, 255, 0.08);
    border-color: rgba(138, 184, 255, 0.18);
}

.cp-narr-block--historical .cp-narr-head {
    color: #bfd9ff;
}

.cp-narr-block--verdict {
    background: rgba(228, 176, 87, 0.08);
    border-color: rgba(228, 176, 87, 0.18);
}

.cp-narr-block--verdict .cp-narr-copy {
    font-weight: 700;
}

.cp-detail {
    display: none;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 24, 44, 0.98), rgba(19, 32, 58, 0.97));
    border: 1px solid rgba(94, 122, 179, 0.26);
    box-shadow: 0 20px 34px rgba(10, 15, 26, 0.28);
}

.cp-detail.open {
    display: block;
}

.cp-detail-top {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(94, 122, 179, 0.18);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.cp-detail-kicker {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9bc3ff;
    margin-bottom: 6px;
}

.cp-detail-date {
    font-size: 24px;
    color: #f4f7ff;
}

.cp-detail-score {
    font-size: 34px;
    color: var(--gold);
    font-weight: 700;
}

.cp-detail-body {
    padding: 20px;
    color: #dbe5f8;
}

.cp-detail-section {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9bc3ff;
    margin: 0 0 10px;
}

.cp-tbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: rgba(9, 19, 36, 0.42);
    border: 1px solid rgba(99, 127, 184, 0.14);
    border-radius: 16px;
    overflow: hidden;
}

.cp-tbl th,
.cp-tbl td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(99, 127, 184, 0.10);
    text-align: left;
    color: #e7eefc;
}

.cp-tbl th {
    color: #a9b9d8;
    font-size: 11px;
    text-transform: uppercase;
    background: rgba(28, 43, 74, 0.92);
}

.m-sign { color: var(--mint); }
.m-d9 { color: var(--sky); }
.m-no { color: #f0b7ab; }
.cp-cell-meta { color: #9fb2d6; font-size: 11px; }
.cp-retro { color: var(--rose); }

.cp-angles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.cp-abox {
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.92);
    border: 1px solid rgba(201, 137, 29, 0.10);
    padding: 12px;
}

.cp-alabel {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.cp-aval {
    font-size: 19px;
    font-weight: 700;
}

.cp-adiff {
    margin-top: 4px;
    font-size: 12px;
}

.a-good { color: var(--mint); }
.a-ok { color: var(--gold); }
.a-bad { color: var(--rose); }

.cp-cluster {
    border-radius: 18px;
    background: rgba(9, 19, 36, 0.42);
    border: 1px solid rgba(99, 127, 184, 0.14);
    padding: 16px;
}

.cp-cluster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cp-bar-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.cp-bar-lbl,
.cp-bar-val {
    color: var(--muted);
    font-size: 11px;
}

.cp-bar-lbl { width: 24px; }
.cp-bar-val { width: 18px; text-align: right; }

.cp-bar-trk {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(49, 84, 138, 0.08);
}

.cp-bar-fill {
    height: 8px;
    border-radius: 999px;
}

.cp-bar-fill--now { background: var(--gold); }
.cp-bar-fill--then { background: var(--sky); }

.cp-cluster-note {
    margin-top: 10px;
    color: #a9b9d8;
}

.cp-detail-narrative {
    margin-top: 10px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(9, 19, 36, 0.44);
    border: 1px solid rgba(99, 127, 184, 0.14);
    color: #dbe5f8;
    line-height: 1.7;
}

.brand-story-card {
    max-width: 920px;
}

.brand-story-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: center;
}

.brand-story-visual {
    position: relative;
    min-height: 260px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17, 29, 53, 0.98), rgba(35, 52, 90, 0.96));
    border: 1px solid rgba(201, 137, 29, 0.18);
}

.brand-story-ring {
    width: 180px;
    height: 180px;
    left: 50px;
    top: 34px;
    border-radius: 50%;
    border: 2px solid rgba(247,196,93,0.36);
    animation: orbit-spin 20s linear infinite;
}

.brand-story-core {
    width: 74px;
    height: 74px;
    left: 103px;
    top: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7db, #f0b244 60%, #d47422 100%);
    box-shadow: 0 0 34px rgba(247,196,93,0.38);
}

.brand-story-stars {
    inset: 0;
    background-image:
        radial-gradient(circle at 22% 30%, rgba(255,255,255,0.72) 0 1.4px, transparent 1.8px),
        radial-gradient(circle at 72% 26%, rgba(247,196,93,0.76) 0 1.6px, transparent 2px),
        radial-gradient(circle at 78% 68%, rgba(139,196,255,0.76) 0 1.6px, transparent 2px),
        radial-gradient(circle at 38% 78%, rgba(255,255,255,0.68) 0 1.2px, transparent 1.8px);
}

.brand-story-copy {
    display: grid;
    gap: 14px;
    color: #3a4b68;
    line-height: 1.8;
}

body[data-theme="dark"] .app-header,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .story-explain,
body[data-theme="dark"] .input-panel,
body[data-theme="dark"] .payment-card,
body[data-theme="dark"] .outcome-card,
body[data-theme="dark"] .cp-hero,
body[data-theme="dark"] .cp-detail,
body[data-theme="dark"] .cp-card,
body[data-theme="dark"] .cp-explainer,
body[data-theme="dark"] .signature-card,
body[data-theme="dark"] .app-version,
body[data-theme="dark"] .theme-toggle {
    background: linear-gradient(180deg, rgba(18, 31, 56, 0.98), rgba(22, 38, 67, 0.96));
    border-color: rgba(99, 127, 184, 0.18);
    color: var(--text);
}

body[data-theme="dark"] .hero-panel {
    background:
        linear-gradient(135deg, rgba(16, 28, 49, 0.98), rgba(22, 39, 71, 0.96)),
        radial-gradient(circle at right top, rgba(228, 176, 87, 0.16), transparent 34%),
        radial-gradient(circle at 15% 12%, rgba(138, 184, 255, 0.10), transparent 24%);
    box-shadow: 0 20px 44px rgba(7, 11, 20, 0.30);
}

body[data-theme="dark"] .mission-panel {
    background:
        linear-gradient(135deg, rgba(16, 28, 49, 0.98), rgba(22, 39, 71, 0.96)),
        radial-gradient(circle at 80% 20%, rgba(228,176,87,0.12), transparent 26%);
    border-color: rgba(99, 127, 184, 0.18);
    box-shadow: 0 20px 44px rgba(7, 11, 20, 0.30);
}

body[data-theme="dark"] .mission-visual-frame {
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 217, 140, 0.14), transparent 24%),
        linear-gradient(135deg, rgba(22, 34, 58, 0.98), rgba(28, 46, 82, 0.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 48px rgba(16, 23, 38, 0.18);
}

body[data-theme="dark"] .mission-logo {
    mix-blend-mode: screen;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

body[data-theme="dark"] .mission-tribute {
    color: #f2cf92;
    background: rgba(18, 31, 56, 0.56);
    border-color: rgba(228, 176, 87, 0.22);
}

body[data-theme="dark"] .hero-copy h1,
body[data-theme="dark"] .story-copy strong,
body[data-theme="dark"] .mission-copy h2,
body[data-theme="dark"] .payment-title,
body[data-theme="dark"] .outcome-title,
body[data-theme="dark"] .signature-title,
body[data-theme="dark"] .cp-title,
body[data-theme="dark"] .cp-card-date,
body[data-theme="dark"] .cp-detail-date,
body[data-theme="dark"] .input-panel-title {
    color: #f1f5ff;
}

body[data-theme="dark"] .hero-copy p,
body[data-theme="dark"] .story-copy small,
body[data-theme="dark"] .story-explain,
body[data-theme="dark"] .mission-copy p,
body[data-theme="dark"] .mission-caption,
body[data-theme="dark"] .input-panel-note,
body[data-theme="dark"] .action-strip-note,
body[data-theme="dark"] .payment-help,
body[data-theme="dark"] .signature-help,
body[data-theme="dark"] .cp-copy,
body[data-theme="dark"] .cp-card-summary,
body[data-theme="dark"] .cp-detail-narrative,
body[data-theme="dark"] .brand-story-copy,
body[data-theme="dark"] .payment-line span {
    color: #acbad5;
}

body[data-theme="dark"] .payment-line,
body[data-theme="dark"] .cp-abox,
body[data-theme="dark"] .cp-cluster,
body[data-theme="dark"] .cp-detail-narrative,
body[data-theme="dark"] .signature-chip,
body[data-theme="dark"] .cp-explainer-visual {
    background: rgba(9, 19, 36, 0.44);
    border-color: rgba(99, 127, 184, 0.18);
}

body[data-theme="dark"] .next-journey {
    border-top-color: rgba(99, 127, 184, 0.18);
}

body[data-theme="dark"] .next-journey-title,
body[data-theme="dark"] .journey-card-title {
    color: #f1f5ff;
}

body[data-theme="dark"] .journey-card {
    background: linear-gradient(180deg, rgba(16, 28, 49, 0.92), rgba(21, 36, 64, 0.90));
    border-color: rgba(99, 127, 184, 0.18);
}

body[data-theme="dark"] .journey-card p {
    color: #acbad5;
}

/* Modern AI landing overrides */
.mission-panel--ai {
    background:
        radial-gradient(circle at top right, rgba(138, 184, 255, 0.16), transparent 30%),
        radial-gradient(circle at left top, rgba(228, 176, 87, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(240, 231, 216, 0.98));
    border-color: rgba(74, 105, 163, 0.14);
}

.mission-headline {
    font-size: clamp(2.5rem, 4.8vw, 4.55rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #15233d;
    margin: 12px 0 16px;
    max-width: 11.5ch;
    text-wrap: balance;
}

.mission-lead {
    font-size: 17px;
    line-height: 1.85;
    color: #51617e;
    max-width: 68ch;
    margin-bottom: 4px;
}

.mission-tribute {
    max-width: 86ch;
    margin: 10px 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #62718d;
    line-height: 1.8;
    font-size: 14px;
    font-style: italic;
    opacity: 0.92;
}

.mission-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 20px;
}

.mission-proof-card {
    padding: 16px 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 239, 226, 0.92));
    border: 1px solid rgba(74, 105, 163, 0.12);
    box-shadow: 0 14px 28px rgba(35, 47, 77, 0.08);
}

.mission-proof-kicker {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 10px;
    font-weight: 700;
}

.mission-proof-card strong {
    display: block;
    font-size: 18px;
    color: #16233d;
    margin-bottom: 8px;
}

.mission-proof-card p {
    margin: 0;
    color: #687896;
    line-height: 1.65;
    font-size: 14px;
}

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

.story-visual--natal::before {
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(49, 84, 138, 0.55);
}

.story-visual--natal::after {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,137,29,0.92), rgba(79,118,188,0.88));
    right: 14px;
    bottom: 14px;
}

.mission-floating-badge {
    position: absolute;
    z-index: 5;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(12, 21, 40, 0.78);
    color: #eef4ff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 30px rgba(17, 27, 46, 0.2);
}

.mission-floating-badge--one { top: 16px; left: 18px; }
.mission-floating-badge--two { top: 78px; right: 18px; }
.mission-floating-badge--three { bottom: 20px; right: 26px; }

.input-panel--launch {
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(244, 236, 224, 0.98));
    box-shadow: 0 20px 44px rgba(35, 47, 77, 0.08);
}

.input-panel--launch {
    display: none;
}

.input-panel--launch.is-open {
    display: block;
}

.input-panel--launch.is-open .launch-only {
    display: none;
}

.two-col {
    display: none;
}

.two-col.is-open {
    display: grid;
}

.input-group--launch-cta {
    min-width: 220px;
}

.next-journey-title {
    max-width: 32ch;
}

.next-journey-grid {
    grid-template-columns: 1fr;
}

.journey-card {
    background:
        linear-gradient(180deg, rgba(17, 28, 53, 0.95), rgba(21, 34, 62, 0.92)),
        radial-gradient(circle at top right, rgba(255, 198, 95, 0.12), transparent 28%);
    border: 1px solid rgba(110, 140, 201, 0.18);
    box-shadow: 0 20px 36px rgba(15, 22, 40, 0.18);
}

.journey-card-title {
    color: #f2f6ff;
}

.journey-card p {
    color: rgba(229, 236, 249, 0.78);
}

.journey-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.prashna-status {
    font-size: 13px;
    color: #9fb4d8;
    line-height: 1.5;
}

.prashna-outcome {
    margin-top: 14px;
}

.prashna-outcome-card {
    border-radius: 18px;
    border: 1px solid rgba(110, 140, 201, 0.18);
    background:
        linear-gradient(180deg, rgba(11, 21, 42, 0.95), rgba(16, 28, 52, 0.94)),
        radial-gradient(circle at top right, rgba(255, 198, 95, 0.12), transparent 28%);
    padding: 16px;
    box-shadow: 0 16px 34px rgba(7, 12, 24, 0.18);
}

.prashna-outcome-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.prashna-outcome-kicker {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8ab8ff;
    font-weight: 700;
    margin-bottom: 6px;
}

.prashna-outcome-promise {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    color: #f4f7ff;
}

.prashna-outcome-promise--yes,
.prashna-outcome-promise--likely-yes {
    color: #86d9a8;
}

.prashna-outcome-promise--no,
.prashna-outcome-promise--likely-no {
    color: #ff9b8d;
}

.prashna-outcome-promise--conditional {
    color: #f0c977;
}

.prashna-outcome-timing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 184, 255, 0.12);
    min-width: 140px;
}

.prashna-outcome-timing strong {
    color: #f4f7ff;
    font-size: 14px;
}

.prashna-outcome-timing span,
.prashna-outcome-meta span,
.prashna-analysis-block li {
    color: #adc0e2;
}

.prashna-outcome-summary {
    color: #eef3ff;
    line-height: 1.72;
    margin: 14px 0 12px;
}

.prashna-bothering-card {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(240, 201, 119, 0.18);
    background: rgba(240, 201, 119, 0.08);
}

.prashna-bothering-card strong {
    display: block;
    color: #f4f7ff;
    margin-bottom: 6px;
}

.prashna-bothering-card p {
    color: #dbeafe;
    line-height: 1.65;
    margin: 0;
}

.prashna-outcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
}

.prashna-analysis-toggle {
    border: 1px solid rgba(138, 184, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f4f7ff;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.prashna-analysis-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.prashna-analysis-panel.open {
    display: grid;
}

.prashna-analysis-block {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 184, 255, 0.12);
    padding: 14px;
}

.prashna-analysis-title {
    color: #f4f7ff;
    font-weight: 700;
    margin-bottom: 8px;
}

.prashna-analysis-block ul {
    margin: 0;
    padding-left: 18px;
}

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

.journey-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #eef4ff;
    padding: 12px 13px;
    font-size: 14px;
    outline: none;
}

.journey-field::placeholder {
    color: rgba(233, 238, 248, 0.54);
}

.journey-field:focus {
    border-color: rgba(228, 176, 87, 0.58);
    box-shadow: 0 0 0 3px rgba(228, 176, 87, 0.12);
}

.journey-field--textarea {
    min-height: 110px;
    resize: vertical;
    margin-top: 14px;
}

.fc-shell {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(73, 121, 255, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(10, 18, 34, 0.98), rgba(15, 27, 49, 0.97));
    border: 1px solid rgba(138, 184, 255, 0.16);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24);
}

.fc-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.fc-title {
    font-size: 24px;
    line-height: 1.2;
    color: #f4f7ff;
    max-width: 18ch;
}

.fc-sub,
.fc-status,
.fc-context-summary,
.fc-analysis-item span,
.fc-summary-tip p,
.fc-summary-signature,
.fc-context-count,
.fc-context-date,
.fc-analysis-traits {
    color: #adc0e2;
}

.fc-sub {
    max-width: 30ch;
    line-height: 1.6;
    font-size: 13px;
}

.fc-summary {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-summary-left,
.fc-summary-right {
    display: grid;
    gap: 10px;
}

.fc-summary-kicker,
.fc-analysis-kicker {
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #9ec4ff;
    font-weight: 700;
}

.fc-summary-stance {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.fc-summary-stance--bullish { color: #8fe1c1; }
.fc-summary-stance--bearish { color: #f4b2a2; }
.fc-summary-stance--sideways { color: #f3cf8e; }

.fc-summary-line {
    font-size: 15px;
    line-height: 1.7;
    color: #eff4ff;
}

.fc-summary-line--forecast {
    font-size: 18px;
    line-height: 1.85;
    color: #f4f7ff;
    max-width: 58ch;
}

.fc-summary-conclusion {
    padding: 12px;
    border-radius: 14px;
    background: rgba(143, 225, 193, 0.08);
    border: 1px solid rgba(143, 225, 193, 0.14);
}

.fc-range-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fc-range-card {
    padding: 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-range-card strong,
.fc-range-card span {
    display: block;
}

.fc-range-card strong {
    color: #f4f7ff;
    font-size: 12px;
    margin-bottom: 6px;
}

.fc-range-card span {
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.45;
}

.fc-summary-history {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(228, 176, 87, 0.16);
}

.fc-summary-history-kicker {
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: #f0c979;
    font-weight: 700;
}

.fc-summary-history small {
    font-size: 12px;
    color: #adc0e2;
}

.fc-summary-history strong {
    color: #f4f7ff;
    font-size: 16px;
    line-height: 1.4;
}

.fc-summary-history p {
    color: #dbe7fb;
    line-height: 1.65;
}

.fc-score-ring {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(9, 17, 31, 0.92) 56%, transparent 57%),
        conic-gradient(#7fb2ff calc(var(--score, 72) * 1%), rgba(255,255,255,0.08) 0);
    border: 1px solid rgba(138, 184, 255, 0.12);
    color: #f4f7ff;
    justify-self: end;
}

.fc-score-ring span {
    font-size: 28px;
    font-weight: 800;
}

.fc-score-ring small {
    display: block;
    font-size: 11px;
    color: #adc0e2;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.fc-summary-tip {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-summary-tip strong,
.fc-context-headline,
.fc-analysis-signature {
    color: #f4f7ff;
}

.fc-summary-tip p {
    margin-top: 8px;
    line-height: 1.7;
}

.fc-tip-marketline {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(138, 184, 255, 0.08);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-tip-marketline span {
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.5;
}

.fc-tip-marketline b {
    color: #f4f7ff;
}

.fc-tip-toggle {
    margin-top: 10px;
    border-radius: 999px;
    border: 1px solid rgba(228, 176, 87, 0.20);
    background: rgba(228, 176, 87, 0.10);
    color: #f4d18f;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.fc-tip-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-tip-rule {
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(138, 184, 255, 0.07);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-tip-rule span {
    display: block;
    margin-top: 5px;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.55;
}

.fc-sector-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.fc-sector-card {
    display: grid;
    gap: 5px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(12, 20, 38, 0.55);
    border: 1px solid rgba(244, 209, 143, 0.13);
}

.fc-sector-card span,
.fc-sector-card small,
.fc-sector-card em {
    color: #cfe0ff;
    font-size: 12px;
    line-height: 1.5;
}

.fc-summary-signature {
    margin-top: 10px;
    font-size: 12px;
}

.fc-status {
    margin: 12px 2px 10px;
    font-size: 13px;
}

.fc-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fc-context-slot {
    display: grid;
    gap: 10px;
}

.fc-context-card,
.fc-analysis-panel {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 184, 255, 0.12);
}

.fc-context-top,
.fc-context-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.fc-context-title {
    color: #9ec4ff;
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    font-weight: 700;
}

.fc-tone {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.fc-tone--bullish {
    background: rgba(118, 200, 179, 0.14);
    color: #8fe1c1;
}

.fc-tone--bearish {
    background: rgba(242, 161, 143, 0.14);
    color: #f4b2a2;
}

.fc-tone--sideways {
    background: rgba(228, 176, 87, 0.12);
    color: #f3cf8e;
}

.fc-context-date {
    font-size: 12px;
    margin-top: 8px;
}

.fc-context-headline {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.fc-context-summary {
    margin-top: 8px;
    line-height: 1.65;
    font-size: 14px;
}

.fc-context-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.fc-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d7e6ff;
    border: 1px solid rgba(138, 184, 255, 0.14);
    font-size: 12px;
}

.fc-context-actions {
    margin-top: 14px;
}

.fc-analysis-btn {
    border-radius: 999px;
    border: 1px solid rgba(138, 184, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.fc-analysis-panel {
    display: none;
}

.fc-analysis-panel.open {
    display: block;
}

.fc-analysis-panel-inner {
    display: grid;
    gap: 14px;
}

.fc-analysis-block {
    padding: 14px;
    border-radius: 16px;
    background: rgba(9, 17, 31, 0.34);
    border: 1px solid rgba(138, 184, 255, 0.10);
}

.fc-analysis-signature {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.45;
}

.fc-analysis-traits {
    margin-top: 8px;
    line-height: 1.6;
    font-size: 13px;
}

.fc-analysis-block p {
    margin-top: 8px;
    color: #d7e6ff;
    line-height: 1.7;
}

.fc-analysis-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.fc-analysis-item {
    display: grid;
    gap: 4px;
}

.fc-analysis-item strong {
    color: #f4f7ff;
    font-size: 14px;
}

.fc-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fc-error-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(242, 161, 143, 0.10);
    border: 1px solid rgba(242, 161, 143, 0.16);
    color: #f4b2a2;
}

body[data-theme="dark"] .mission-panel--ai {
    background:
        radial-gradient(circle at top right, rgba(138, 184, 255, 0.14), transparent 30%),
        radial-gradient(circle at left top, rgba(228, 176, 87, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(13, 23, 42, 0.96), rgba(19, 31, 56, 0.96));
}

body[data-theme="dark"] .mission-headline,
body[data-theme="dark"] .mission-proof-card strong {
    color: #f1f5ff;
}

body[data-theme="dark"] .mission-lead,
body[data-theme="dark"] .mission-proof-card p {
    color: #b3c0da;
}

body[data-theme="dark"] .mission-tribute {
    color: #c1cee5;
    background: transparent;
    border-color: transparent;
}

body[data-theme="dark"] .mission-proof-card {
    background: linear-gradient(180deg, rgba(19, 33, 58, 0.9), rgba(14, 24, 43, 0.94));
    border-color: rgba(110, 140, 201, 0.16);
}

/* AI-platform visual pass */
body[data-theme="dark"] {
    background:
        radial-gradient(circle at 12% 0%, rgba(66, 126, 255, 0.16), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(237, 187, 92, 0.12), transparent 22%),
        linear-gradient(180deg, #08101f 0%, #0a1324 38%, #0d1528 100%);
}

body[data-theme="dark"] .app-header {
    background: rgba(6, 12, 24, 0.82);
    border-bottom-color: rgba(105, 150, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] .brand-mark-img {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .app-version,
body[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 184, 255, 0.16);
    color: #d7e6ff;
}

body[data-theme="dark"] .mission-panel--ai,
body[data-theme="dark"] .input-panel--launch,
body[data-theme="dark"] .cp-hero {
    background:
        radial-gradient(circle at top right, rgba(73, 121, 255, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(10, 18, 34, 0.96), rgba(15, 27, 49, 0.96));
    border-color: rgba(138, 184, 255, 0.16);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .mission-visual-frame {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 213, 122, 0.2), transparent 24%),
        linear-gradient(145deg, rgba(8, 14, 28, 0.98), rgba(18, 28, 49, 0.96));
    border-color: rgba(138, 184, 255, 0.16);
}

body[data-theme="dark"] .mission-logo {
    mix-blend-mode: normal;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

body[data-theme="dark"] .platform-pill,
body[data-theme="dark"] .mission-floating-badge,
body[data-theme="dark"] .cp-source-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(138, 184, 255, 0.18);
    color: #e9f0ff;
    box-shadow: none;
}

body[data-theme="dark"] .story-card,
body[data-theme="dark"] .mission-proof-card,
body[data-theme="dark"] .story-explain,
body[data-theme="dark"] .cp-explainer {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(138, 184, 255, 0.14);
    box-shadow: none;
}

body[data-theme="dark"] .story-copy strong,
body[data-theme="dark"] .mission-proof-card strong,
body[data-theme="dark"] .journey-card-title {
    color: #f4f7ff;
}

body[data-theme="dark"] .mission-copy p,
body[data-theme="dark"] .mission-lead,
body[data-theme="dark"] .story-copy small,
body[data-theme="dark"] .story-explain,
body[data-theme="dark"] .input-panel-note,
body[data-theme="dark"] .journey-card p {
    color: #adc0e2;
}

body[data-theme="dark"] .input-panel input,
body[data-theme="dark"] .signature-textarea,
body[data-theme="dark"] .journey-field {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(138, 184, 255, 0.16);
    color: #eef3ff;
}

body[data-theme="dark"] #loadTransit,
body[data-theme="dark"] .primary-action {
    background: linear-gradient(135deg, #7fb2ff, #d9a84b);
    color: #08101f;
    border-color: rgba(255, 255, 255, 0.08);
}

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Single landing-frame pass */
.mission-panel--ai {
    position: relative;
    min-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    overflow: hidden;
    padding: clamp(26px, 4vw, 52px);
}

.mission-panel--ai .mission-copy,
.mission-panel--ai .mission-visual {
    position: relative;
    z-index: 3;
}

.mission-panel--ai .mission-copy {
    isolation: isolate;
    width: 100%;
    min-height: clamp(500px, 62vh, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4.4vw, 62px) clamp(64px, 8vw, 132px);
}

.mission-panel--ai .mission-copy::before {
    display: none;
}

.mission-panel--ai .mission-copy::after {
    display: none;
}

.writeup-orbit {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: min(1100px, 96%);
    height: min(620px, 88%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.writeup-orbit.is-paused .writeup-planet {
    animation-play-state: paused;
}

.writeup-orbit::before,
.writeup-orbit::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(138, 184, 255, 0.15);
}

.writeup-orbit::after {
    inset: 20% 14%;
    border-color: rgba(228,176,87,0.18);
    transform: rotate(-12deg);
}

.writeup-planet {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: -48px;
    border-radius: 50%;
    color: #fff8e7;
    background:
        radial-gradient(circle at 34% 26%, rgba(255,255,255,0.24), transparent 17%),
        linear-gradient(135deg, rgba(30, 52, 92, 0.94), rgba(12, 22, 42, 0.95));
    border: 1px solid rgba(228,176,87,0.32);
    box-shadow: 0 18px 34px rgba(0,0,0,0.22);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    pointer-events: auto;
    animation: writeup-planet-orbit 20s linear infinite;
}

.writeup-planet--one {
    --orbit-angle: 0deg;
}

.writeup-planet--two {
    --orbit-angle: 90deg;
}

.writeup-planet--three {
    --orbit-angle: 180deg;
}

.writeup-planet--four {
    --orbit-angle: 270deg;
}

.mission-panel--ai .hero-label {
    font-size: 11px;
    letter-spacing: 2.4px;
    font-weight: 900;
}

.mission-panel--ai .mission-headline {
    font-size: clamp(2.05rem, 3.45vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    max-width: 18ch;
    text-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.mission-panel--ai .mission-lead {
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.8;
    max-width: 70ch;
}

.writeup-diya {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 176px;
    height: 176px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    opacity: 0.62;
}

.writeup-diya-flame {
    position: absolute;
    top: 12px;
    width: 82px;
    height: 122px;
    border-radius: 72% 28% 62% 38% / 68% 36% 64% 32%;
    background:
        radial-gradient(circle at 44% 60%, rgba(255,255,255,0.82), transparent 15%),
        radial-gradient(circle at 50% 64%, rgba(255,215,98,0.92), transparent 34%),
        linear-gradient(180deg, rgba(255,142,39,0.94), rgba(219,86,21,0.2));
    transform: rotate(10deg);
    box-shadow: 0 0 50px rgba(255, 175, 54, 0.36);
}

.writeup-diya-bowl {
    position: absolute;
    bottom: 24px;
    width: 170px;
    height: 72px;
    border-radius: 14px 14px 86px 86px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,224,145,0.52), transparent 42%),
        linear-gradient(180deg, rgba(147,85,30,0.88), rgba(67,38,22,0.92));
    border: 1px solid rgba(255, 205, 112, 0.42);
    box-shadow: 0 18px 50px rgba(0,0,0,0.26);
}

.mission-panel--ai .story-grid--embedded,
.mission-panel--ai .story-explain--embedded {
    display: none;
}

.mission-panel--ai .mission-visual-frame {
    min-height: clamp(330px, 46vh, 450px);
    overflow: visible;
}

.mission-panel--ai .mission-floating-badge {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    min-width: 132px;
    text-align: center;
    transform: translate(-50%, -50%);
    animation: landing-badge-orbit 18s linear infinite;
}

.mission-floating-badge--one {
    --orbit-angle: 0deg;
}

.mission-floating-badge--two {
    --orbit-angle: 90deg;
    animation-delay: -4.5s;
}

.mission-floating-badge--three {
    --orbit-angle: 180deg;
    animation-delay: -9s;
}

.mission-floating-badge--four {
    --orbit-angle: 270deg;
    animation-delay: -13.5s;
}

.landing-actions {
    position: relative;
    z-index: 5;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 14px;
    padding-top: 22px;
}

.landing-action {
    min-width: 160px;
    border-radius: 999px;
    border: 1px solid rgba(138, 184, 255, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: #16243c;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.landing-action--primary {
    background: linear-gradient(135deg, #7fb2ff, #d9a84b);
    color: #08101f;
    border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .landing-action {
    background: rgba(255, 255, 255, 0.06);
    color: #e9f0ff;
}

body[data-theme="dark"] .landing-action--primary {
    background: linear-gradient(135deg, #7fb2ff, #d9a84b);
    color: #08101f;
}

.landing-action:hover,
.landing-action:focus {
    transform: translateY(-2px);
}

.planet-explain-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 14, 28, 0.48);
    backdrop-filter: blur(10px);
}

.planet-explain-card {
    width: min(520px, 92vw);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(138, 184, 255, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(246, 236, 217, 0.98));
    border: 1px solid rgba(201, 137, 29, 0.18);
    box-shadow: 0 28px 70px rgba(18, 27, 48, 0.24);
    padding: 26px;
}

.planet-explain-title {
    color: #12213a;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    margin: 6px 0 12px;
}

.planet-explain-card p {
    color: #5f6d84;
    line-height: 1.75;
    margin-bottom: 18px;
}

.planet-explain-copy p:first-of-type {
    font-size: 16px;
    line-height: 1.85;
    color: #23314f;
}

.planet-explain-card p:last-of-type {
    margin-bottom: 0;
}

.planet-explain-card em {
    color: var(--gold);
    font-style: normal;
    font-weight: 700;
}

body[data-theme="dark"] .planet-explain-card {
    background:
        radial-gradient(circle at top right, rgba(73, 121, 255, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(10, 18, 34, 0.98), rgba(15, 27, 49, 0.98));
    border-color: rgba(138, 184, 255, 0.16);
}

body[data-theme="dark"] .planet-explain-title {
    color: #f4f7ff;
}

body[data-theme="dark"] .planet-explain-card p {
    color: #adc0e2;
}

body[data-theme="dark"] .planet-explain-copy p:first-of-type {
    color: #edf3ff;
}

body[data-theme="dark"] .planet-explain-card em {
    color: #f0c977;
}

@keyframes landing-badge-orbit {
    from {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(190px) rotate(calc(-1 * var(--orbit-angle)));
    }
    to {
        transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 360deg)) translateX(190px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
    }
}

@keyframes writeup-planet-orbit {
    from {
        transform: rotate(var(--orbit-angle)) translateX(285px) rotate(calc(-1 * var(--orbit-angle)));
    }
    to {
        transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(285px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
    }
}

.mission-panel--ai {
    min-height: calc(100vh - 120px);
    padding: clamp(22px, 2.8vw, 40px);
}

.mission-panel--ai .mission-copy {
    min-height: clamp(430px, 54vh, 560px);
    padding: clamp(28px, 3.4vw, 48px) clamp(56px, 7vw, 120px);
}

.mission-panel--ai .hero-label,
.mission-panel--ai .mission-headline,
.mission-panel--ai .mission-lead,
.mission-panel--ai .mission-tribute,
.mission-panel--ai .platform-strip {
    position: relative;
    z-index: 3;
}

.mission-panel--ai .mission-headline {
    font-size: clamp(1.95rem, 2.7vw, 3.35rem);
    line-height: 1.08;
    max-width: 28ch;
    margin-bottom: 18px;
}

.mission-panel--ai .mission-lead {
    max-width: 78ch;
    line-height: 1.55;
    margin-bottom: 12px;
}

.platform-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.writeup-orbit {
    z-index: 2;
    left: 68%;
    top: 48%;
    width: min(760px, 58vw);
    height: min(460px, 54vh);
}

.writeup-orbit::before {
    inset: 2%;
}

.writeup-orbit::after {
    inset: 13% 4%;
}

.writeup-planet {
    z-index: 4;
}

@keyframes writeup-planet-orbit {
    from {
        transform: rotate(var(--orbit-angle)) translateX(235px) rotate(calc(-1 * var(--orbit-angle)));
    }
    to {
        transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(235px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
    }
}

.mission-panel--ai .mission-copy {
    align-items: flex-start;
    padding: clamp(34px, 4vw, 64px) clamp(54px, 6vw, 92px);
}

.mission-panel--ai .hero-label,
.mission-panel--ai .mission-headline,
.mission-panel--ai .mission-lead,
.mission-panel--ai .mission-tribute,
.mission-panel--ai .platform-strip {
    width: 100%;
    max-width: 1120px;
}

.mission-panel--ai .mission-headline {
    max-width: 100%;
    font-size: clamp(1.3rem, 1.65vw, 1.95rem);
    line-height: 1.42;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.mission-panel--ai .mission-lead {
    max-width: 1120px;
}

.writeup-orbit {
    left: 50%;
    top: 50%;
    width: min(900px, 82vw);
    height: min(520px, 58vh);
    z-index: 1;
    opacity: 0.52;
}

.writeup-orbit::before {
    inset: 0;
}

.writeup-orbit::after {
    inset: 16% 0;
}

.writeup-diya {
    opacity: 0.64;
}

.writeup-planet {
    width: 78px;
    height: 78px;
    margin: -39px;
    z-index: 2;
}

body[data-theme="dark"] .writeup-planet {
    color: #08101f;
    background:
        radial-gradient(circle at 34% 26%, rgba(255,255,255,0.82), transparent 18%),
        linear-gradient(135deg, rgba(232, 241, 255, 0.96), rgba(168, 205, 255, 0.9));
    border-color: rgba(255, 224, 162, 0.46);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.28),
        0 0 34px rgba(138, 184, 255, 0.32);
}

@keyframes writeup-planet-orbit {
    from {
        transform: rotate(var(--orbit-angle)) translateX(240px) rotate(calc(-1 * var(--orbit-angle)));
    }
    to {
        transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(240px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
    }
}

@media (max-width: 960px) {
    .hero-panel,
    .mission-panel,
    .two-col,
    .payment-grid,
    .signature-columns,
    .cp-cluster-grid,
    .cp-hero,
    .brand-story-layout {
        grid-template-columns: 1fr;
    }

    .story-grid--embedded,
    .mission-proof-grid,
    .journey-form-grid,
    .fc-context-grid,
    .fc-analysis-grid,
    .fc-summary,
    .prashna-analysis-panel {
        grid-template-columns: 1fr;
    }

    .col-right {
        position: static;
    }

    .cp-res-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .app-header,
    .input-panel-top,
    .input-row,
    .fc-head,
    .fc-context-top,
    .fc-context-actions,
    .action-strip,
    .payment-head,
    .signature-card-top,
    .brand-lockup,
    .app-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-title {
        font-size: 24px;
    }

    .hero-copy h1 {
        font-size: 31px;
    }

    .mission-headline {
        font-size: 2.5rem;
    }

    .mission-panel--ai {
        min-height: auto;
        grid-template-rows: auto;
        overflow: hidden;
    }

    .mission-panel--ai .mission-visual-frame {
        min-height: 360px;
    }

    .mission-panel--ai .mission-copy {
        padding: 56px 18px 72px;
    }

    .writeup-orbit {
        left: 50%;
        top: 50%;
        width: 100%;
        height: 460px;
    }

    .writeup-planet {
        width: 84px;
        height: 84px;
        margin: -42px;
        font-size: 10px;
    }

    @keyframes writeup-planet-orbit {
        from {
            transform: rotate(var(--orbit-angle)) translateX(150px) rotate(calc(-1 * var(--orbit-angle)));
        }
        to {
            transform: rotate(calc(var(--orbit-angle) + 360deg)) translateX(150px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
        }
    }

    @keyframes landing-badge-orbit {
        from {
            transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(142px) rotate(calc(-1 * var(--orbit-angle)));
        }
        to {
            transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 360deg)) translateX(142px) rotate(calc(-1 * (var(--orbit-angle) + 360deg)));
        }
    }

    .landing-actions {
        flex-direction: column;
    }

    #loadTransit,
    .primary-action,
    .secondary-action,
    .ghost-action,
    .signature-close {
        width: 100%;
    }

    .cp-cards,
    .cp-explainers,
    .cp-angles,
    .next-journey-grid,
    .fc-context-grid,
    .fc-analysis-grid {
        grid-template-columns: 1fr;
    }

    .mission-floating-badge {
        position: static;
        margin-top: 8px;
        display: inline-flex;
    }
}
