@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap");

:root {
    --page-bg: #f7f4f1;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --ink: #31554f;
    --ink-soft: #506963;
    --muted: #6e7d79;
    --line: rgba(49, 85, 79, 0.12);
    --deep: #28465a;
    --sage: #4e6a64;
    --mist: #c8cdd3;
    --warm: #e8dfd7;
    --shadow: 0 28px 60px rgba(43, 58, 67, 0.13);
    --shadow-soft: 0 18px 34px rgba(43, 58, 67, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    color: var(--ink);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 18%),
        linear-gradient(180deg, #faf8f6 0%, #f4efeb 42%, #fbfaf8 100%);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

.journey-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(44, 69, 88, 0.86);
    backdrop-filter: blur(18px);
}

.journey-nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

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

.journey-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(105, 130, 124, 0.95), rgba(40, 70, 90, 0.92));
    color: #f8fafc;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(40, 70, 90, 0.24);
}

.journey-brand-copy {
    display: grid;
    gap: 2px;
}

.journey-brand-copy strong {
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.25;
}

.journey-brand-copy span,
.journey-links a {
    color: rgba(248, 250, 252, 0.8);
    font-size: 0.94rem;
}

.journey-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.journey-page {
    padding-bottom: 60px;
}

.journey-hero {
    padding: 56px 0 24px;
}

.journey-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 22px;
}

.journey-hero-shell > *,
.journey-main-grid > * {
    min-width: 0;
}

.journey-hero-copy,
.journey-hero-stats article,
.journey-board-card,
.journey-inspector-card {
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.journey-hero-copy {
    padding: 36px;
    color: #f7faf8;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(40, 70, 90, 0.98), rgba(88, 112, 108, 0.92) 58%, rgba(197, 202, 209, 0.76));
}

.journey-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
}

.journey-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.78;
}

.journey-kicker-muted {
    color: var(--muted);
}

.journey-hero-copy .journey-kicker {
    color: rgba(248, 250, 252, 0.8);
}

.journey-hero-copy h1,
.journey-board-head h2,
.journey-inspector-card h2 {
    margin: 14px 0 0;
    line-height: 1.12;
}

.journey-hero-copy h1 {
    font-size: clamp(2.2rem, 3.8vw, 4rem);
}

.journey-hero-copy p {
    margin: 16px 0 0;
    color: rgba(248, 250, 252, 0.88);
    line-height: 1.95;
    font-size: 1rem;
}

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

.journey-button {
    appearance: none;
    border: 0;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.journey-button:hover {
    transform: translateY(-2px);
}

.journey-button-primary {
    background: #ffffff;
    color: var(--deep);
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(255, 255, 255, 0.16);
}

.journey-button-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.journey-hero-stats {
    display: grid;
    gap: 14px;
}

.journey-hero-stats article {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 242, 239, 0.94) 100%);
}

.journey-hero-stats strong {
    display: block;
    color: var(--deep);
    font-size: clamp(1.8rem, 2.5vw, 2.7rem);
    font-weight: 800;
}

.journey-hero-stats span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.8;
}

.journey-main {
    padding: 8px 0 18px;
}

.journey-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.journey-board-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 246, 243, 0.94) 100%);
}

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

.journey-board-head h2 {
    color: var(--ink);
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.journey-board-note {
    max-width: 250px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.journey-board {
    position: relative;
    min-height: 760px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 247, 245, 0.98) 100%);
}

.journey-board.is-playing .flow-link {
    opacity: 0.82;
}

.journey-watermark {
    position: absolute;
    top: 4.8%;
    left: 4.4%;
    display: grid;
    gap: 1px;
    color: rgba(123, 136, 142, 0.72);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.05;
    z-index: 3;
}

.journey-aurora {
    position: absolute;
    border-radius: 999px;
    z-index: 0;
}

.journey-aurora-left {
    inset: 14% 22% 16% -4%;
    background:
        radial-gradient(circle at 58% 40%, rgba(232, 223, 215, 0.58), transparent 54%),
        linear-gradient(145deg, rgba(233, 224, 216, 0.34), rgba(237, 230, 222, 0.74));
    transform: rotate(-9deg);
}

.journey-aurora-right {
    inset: -26% -12% 18% 46%;
    background:
        radial-gradient(circle at 34% 52%, rgba(201, 203, 209, 0.48), transparent 48%),
        linear-gradient(140deg, rgba(220, 215, 212, 0.16), rgba(203, 205, 211, 0.56));
    transform: rotate(14deg);
}

.journey-wave {
    position: absolute;
    left: -6%;
    right: -4%;
    bottom: -24%;
    height: 44%;
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1));
    z-index: 0;
}

.journey-flows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.flow-link {
    opacity: 0.58;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.flow-link.is-active {
    opacity: 1;
}

.flow-base,
.flow-dash {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-base {
    stroke: rgba(40, 70, 90, 0.12);
    stroke-width: 8;
}

.flow-dash {
    stroke: #2f5060;
    stroke-width: 4.5;
    stroke-dasharray: 10 14;
    animation: dash-flow 11s linear infinite;
    filter: drop-shadow(0 5px 10px rgba(41, 72, 90, 0.1));
}

.flow-link-soft .flow-dash {
    stroke-width: 3.5;
    stroke-dasharray: 8 12;
}

.flow-dot {
    fill: #f6fbfb;
    stroke: #2f5060;
    stroke-width: 1.7;
}

.flow-dot-soft {
    fill: rgba(232, 239, 238, 0.96);
    stroke: #42615b;
}

.journey-item {
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: var(--width);
    transform: translateX(-50%);
    appearance: none;
    border: 0;
    text-align: center;
    cursor: pointer;
    color: var(--ink);
    z-index: 4;
    opacity: 0;
    animation:
        item-enter 0.8s ease forwards,
        item-float 7.8s ease-in-out infinite;
    animation-delay: var(--delay), calc(var(--delay) + 1s);
}

.journey-item-label {
    display: block;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.journey-item-subtitle {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: 4px;
    line-height: 1.25;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.journey-item:not(.node-core):not(.node-monitoring):not(.node-enablement) {
    min-height: 68px;
    padding: 16px 18px;
    border-radius: var(--radius-pill);
    background:
        linear-gradient(180deg, rgba(201, 205, 212, 0.96), rgba(233, 234, 237, 0.98));
    box-shadow: var(--shadow-soft);
}

.journey-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.65);
    opacity: 0.9;
}

.journey-item:hover,
.journey-item:focus-visible,
.journey-item.is-active {
    outline: none;
    transform: translateX(-50%) translateY(-4px) scale(1.02);
    box-shadow: 0 24px 46px rgba(40, 70, 90, 0.16);
}

.journey-item.is-active::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, white);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent);
}

.node-records,
.node-family-data,
.node-basket,
.node-needs,
.node-wallet,
.node-supports {
    font-size: 1rem;
    font-weight: 700;
}

.node-family-data,
.node-policies {
    font-size: 0.98rem;
}

.node-core {
    width: 18.5%;
    min-width: 186px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.42), transparent 28%),
        linear-gradient(180deg, rgba(204, 208, 214, 0.98), rgba(180, 185, 191, 0.96));
    box-shadow: 0 30px 60px rgba(49, 85, 79, 0.16);
}

.node-core::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 6px dotted rgba(192, 211, 205, 0.94);
    animation: ring-spin 20s linear infinite;
}

.node-core::after {
    content: "";
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    border: 1px solid rgba(204, 225, 219, 0.44);
}

.core-dots {
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 9%),
        radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.72), transparent 8%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.88), transparent 9%),
        radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.72), transparent 8%);
    animation: pulse-rotate 14s linear infinite;
    pointer-events: none;
}

.node-core .journey-item-label {
    font-size: clamp(1.7rem, 2.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.05;
}

.node-core .journey-item-subtitle {
    font-size: 1rem;
    color: var(--ink);
}

.node-monitoring,
.node-enablement {
    width: 13.5%;
    padding: 14px 10px;
    min-height: 160px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(245, 247, 244, 0.9), rgba(220, 227, 215, 0.88) 36%, rgba(255, 255, 255, 0));
    box-shadow: none;
}

.node-monitoring::before,
.node-enablement::before {
    border-color: rgba(255, 255, 255, 0.4);
}

.node-monitoring .journey-item-label,
.node-enablement .journey-item-label {
    white-space: pre-line;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.node-enablement {
    background:
        linear-gradient(180deg, rgba(245, 247, 244, 0.9), rgba(226, 230, 227, 0.82) 34%, rgba(255, 255, 255, 0));
}

.support-strip {
    position: absolute;
    right: 4.8%;
    left: 4.8%;
    bottom: 7.8%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(219, 231, 229, 0.8), rgba(204, 218, 216, 0.64));
    box-shadow: var(--shadow-soft);
    z-index: 4;
    overflow: hidden;
    animation: strip-enter 0.85s ease forwards;
    animation-delay: 1.9s;
    opacity: 0;
}

.support-tag {
    appearance: none;
    border: 0;
    background: transparent;
    min-height: 68px;
    padding: 14px 12px;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.94rem;
    line-height: 1.45;
    transition: background 0.22s ease, transform 0.22s ease;
}

.support-tag + .support-tag {
    border-right: 1px solid rgba(73, 106, 99, 0.28);
}

.support-tag:hover,
.support-tag:focus-visible,
.support-tag.is-active {
    outline: none;
    background: color-mix(in srgb, var(--accent) 12%, white);
}

.support-tag.is-active {
    box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--accent) 60%, white);
}

.journey-inspector-card {
    position: sticky;
    top: 106px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 239, 0.94));
}

.journey-inspector-seq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-top: 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(40, 70, 90, 0.14), rgba(112, 131, 122, 0.12));
    color: var(--deep);
    font-size: 1.3rem;
    font-weight: 800;
}

.journey-inspector-card h2 {
    color: var(--ink);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.journey-inspector-group {
    display: block;
    margin-top: 10px;
    color: var(--deep);
    line-height: 1.7;
}

.journey-inspector-summary,
.journey-inspector-points li,
.journey-inspector-note p {
    color: var(--muted);
    line-height: 1.95;
}

.journey-inspector-points {
    margin-top: 20px;
}

.journey-inspector-points h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.journey-inspector-points ul {
    margin: 12px 0 0;
    padding: 0 18px 0 0;
}

.journey-inspector-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(235, 241, 239, 0.68), rgba(255, 255, 255, 0.94));
}

.journey-inspector-note span {
    display: block;
    color: var(--deep);
    font-weight: 800;
}

.journey-inspector-note p {
    margin: 8px 0 0;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -68;
    }
}

@keyframes item-enter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes item-float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-rotate {
    0% {
        transform: rotate(0deg);
        opacity: 0.75;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.75;
    }
}

@keyframes strip-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .journey-item,
    .support-strip,
    .flow-dash,
    .node-core::before,
    .core-dots {
        animation: none !important;
    }

    .journey-item,
    .support-strip {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .journey-main-grid {
        grid-template-columns: 1fr;
    }

    .journey-inspector-card {
        position: static;
    }
}

@media (max-width: 980px) {
    .journey-hero-shell {
        grid-template-columns: 1fr;
    }

    .journey-board-head {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .journey-board {
        display: grid;
        gap: 14px;
        min-height: 0;
        aspect-ratio: auto;
        padding: 82px 18px 20px;
    }

    .journey-flows {
        display: none;
    }

    .journey-watermark {
        top: 18px;
        left: 18px;
        font-size: 0.88rem;
    }

    .journey-aurora-left,
    .journey-aurora-right,
    .journey-wave {
        display: none;
    }

    .journey-item,
    .support-strip {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
        animation:
            mobile-enter 0.7s ease forwards,
            none;
        opacity: 0;
        order: var(--sequence);
    }

    .journey-item:hover,
    .journey-item:focus-visible,
    .journey-item.is-active {
        transform: translateY(-2px);
    }

    .journey-item.is-active::after {
        inset: -6px;
    }

    .node-core {
        aspect-ratio: auto;
        min-width: 0;
        min-height: 210px;
    }

    .node-monitoring,
    .node-enablement {
        min-height: 112px;
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(245, 247, 244, 0.9), rgba(226, 230, 227, 0.62));
    }

    .support-strip {
        position: relative;
        right: auto;
        left: auto;
        bottom: auto;
        order: 18;
        grid-template-columns: 1fr;
        border-radius: 22px;
        margin-top: 4px;
    }

    .support-tag + .support-tag {
        border-right: 0;
        border-top: 1px solid rgba(73, 106, 99, 0.2);
    }
}

@keyframes mobile-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 24px, 1380px);
    }

    .journey-nav-shell {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .journey-links {
        justify-content: center;
    }

    .journey-hero-copy,
    .journey-board-card,
    .journey-inspector-card {
        padding: 20px;
    }

    .journey-hero-copy h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.14;
        overflow-wrap: anywhere;
    }

    .journey-hero-copy p {
        font-size: 0.96rem;
        line-height: 1.9;
    }
}

@media (max-width: 520px) {
    .journey-hero-copy {
        padding: 18px;
    }

    .journey-hero-copy h1 {
        font-size: clamp(1.7rem, 7.4vw, 2.2rem);
        line-height: 1.18;
        letter-spacing: -0.01em;
    }

    .journey-hero-actions {
        gap: 10px;
    }

    .journey-button {
        min-height: 44px;
        padding: 0 16px;
    }
}
