:root {
    --studio-surface: rgba(255, 255, 255, 0.84);
    --studio-surface-strong: rgba(255, 255, 255, 0.94);
    --studio-border: rgba(13, 24, 33, 0.08);
    --studio-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
    --studio-shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.08);
    --studio-ink: #0b1722;
    --studio-muted: #5e6a74;
    --studio-accent: #0f766e;
    --studio-accent-2: #2858f0;
}

.message-strip--success {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.82), rgba(255, 255, 255, 0.9));
    border-color: rgba(22, 163, 74, 0.18);
}

.product-page--immersive {
    gap: 1.25rem;
}

.immersive-hero {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(40, 88, 240, 0.18), transparent 28rem),
        radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.14), transparent 28rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 250, 0.88));
    box-shadow: var(--studio-shadow);
}

.immersive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 44%);
    pointer-events: none;
}

.immersive-hero > * {
    position: relative;
    z-index: 1;
}

.section-stack,
.manual-body,
.timeline-stack,
.faq-grid {
    display: grid;
    gap: 1rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--studio-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accent-pills,
.metrics-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.accent-pill,
.metrics-inline div {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 24, 33, 0.06);
    color: var(--studio-ink);
    font-size: 0.86rem;
}

.hero-note--signal {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 252, 0.9)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(40, 88, 240, 0.08));
}

.hero-note--dark {
    background:
        radial-gradient(circle at top right, rgba(64, 140, 255, 0.28), transparent 15rem),
        linear-gradient(180deg, #0f1724, #152033);
    border-color: rgba(255, 255, 255, 0.08);
    color: #eef6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-note--dark strong,
.hero-note--dark span,
.hero-note--dark small {
    color: inherit;
}

.signal-grid,
.module-grid,
.story-grid,
.manual-card-grid,
.panel-split,
.ops-board,
.info-grid,
.page-band {
    display: grid;
    gap: 1rem;
}

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

.signal-card,
.story-card,
.module-card,
.info-card,
.faq-item,
.manual-section,
.page-toc,
.ops-card,
.page-band__tile {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--studio-border);
    border-radius: 1.5rem;
    background: var(--studio-surface);
    box-shadow: var(--studio-shadow-soft);
}

.signal-card,
.story-card,
.module-card,
.info-card,
.faq-item,
.ops-card,
.page-band__tile {
    padding: 1.1rem 1.15rem;
}

.signal-card strong,
.story-card strong,
.module-card h3,
.info-card h3,
.faq-item h3,
.ops-card h3,
.manual-section h2 {
    margin: 0;
    color: var(--studio-ink);
    letter-spacing: -0.04em;
}

.signal-card span,
.story-card p,
.module-card p,
.info-card p,
.faq-item p,
.ops-card p,
.manual-section p,
.manual-section li,
.page-band__tile span {
    color: var(--studio-muted);
}

.signal-card--accent,
.module-card--accent,
.page-band__tile--accent {
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.16), transparent 14rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.9));
}

.signal-card--cool,
.story-card--cool {
    background:
        radial-gradient(circle at top right, rgba(40, 88, 240, 0.14), transparent 15rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 255, 0.9));
}

.story-card--dark,
.ops-card--dark {
    background:
        radial-gradient(circle at top right, rgba(64, 140, 255, 0.26), transparent 16rem),
        linear-gradient(180deg, #0d1623, #172235);
}

.story-card--dark strong,
.story-card--dark h3,
.story-card--dark p,
.story-card--dark li,
.ops-card--dark h3,
.ops-card--dark p,
.ops-card--dark li {
    color: #eff6ff;
}

.story-grid,
.panel-split,
.ops-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid,
.page-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.timeline-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(13, 24, 33, 0.07);
    background: rgba(255, 255, 255, 0.76);
}

.timeline-step__index {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--studio-accent), var(--studio-accent-2));
    color: #fff;
    font-weight: 800;
    font-size: 0.86rem;
}

.timeline-step h3 {
    margin: 0;
    letter-spacing: -0.03em;
}

.timeline-step p {
    margin: 0.25rem 0 0;
    color: var(--studio-muted);
}

.detail-list,
.number-list,
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.detail-list li,
.number-list li,
.check-list li {
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(13, 24, 33, 0.06);
}

.number-list {
    counter-reset: step;
}

.number-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.number-list li::before {
    content: counter(step, decimal-leading-zero);
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(40, 88, 240, 0.12);
    color: var(--studio-accent-2);
    font-weight: 800;
    font-size: 0.8rem;
}

.manual-layout {
    display: grid;
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.page-toc {
    position: sticky;
    top: 7.8rem;
    padding: 1.1rem;
    background: var(--studio-surface-strong);
}

.page-toc h2 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.page-toc a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    color: var(--studio-muted);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-toc a:hover {
    background: rgba(15, 118, 110, 0.09);
    color: var(--studio-accent);
    transform: translateX(0.15rem);
}

.manual-section {
    padding: 1.25rem;
    background: var(--studio-surface-strong);
}

.manual-section h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    margin-bottom: 0.55rem;
}

.manual-section h3 {
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
}

.manual-section p {
    margin: 0;
}

.promo-band {
    padding: 1.15rem 1.2rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(40, 88, 240, 0.12);
    background:
        radial-gradient(circle at top right, rgba(40, 88, 240, 0.18), transparent 12rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.9));
    box-shadow: var(--studio-shadow-soft);
}

.promo-band h2,
.promo-band p {
    margin: 0;
}

.promo-band p {
    margin-top: 0.55rem;
    color: var(--studio-muted);
}

.page-band__tile strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.15rem;
}

@media (max-width: 1200px) {
    .signal-grid,
    .module-grid,
    .manual-card-grid,
    .info-grid,
    .story-grid,
    .panel-split,
    .ops-board,
    .page-band,
    .manual-layout {
        grid-template-columns: 1fr;
    }

    .page-toc {
        position: static;
        top: auto;
    }
}

@media (max-width: 760px) {
    .site-brand-corner {
        display: none;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .signal-card,
    .story-card,
    .module-card,
    .info-card,
    .faq-item,
    .ops-card,
    .page-band__tile,
    .manual-section {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .timeline-step {
        grid-template-columns: 1fr;
    }

    .timeline-step__index {
        width: 2rem;
        height: 2rem;
    }
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.lang-switch__form {
    margin: 0;
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 4rem;
    padding: 0.44rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text, #0d1821);
    font: inherit;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.lang-switch__btn:hover {
    background: rgba(14, 139, 124, 0.09);
    transform: translateY(-1px);
}

.lang-switch__btn.is-active {
    background: linear-gradient(135deg, rgba(14, 139, 124, 0.14) 0%, rgba(40, 88, 240, 0.10) 100%);
    border-color: rgba(14, 139, 124, 0.22);
    box-shadow:
        0 6px 18px rgba(14, 139, 124, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lang-switch__flag {
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.lang-switch__flag img {
    display: block;
    width: 1.25rem;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    object-fit: cover;
}

.lang-switch__code {
    line-height: 1;
}

.site-lang-corner {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0rem) + 1.25rem);
    right: 1rem;
    z-index: 1200;
    animation: langCornerIn 600ms 200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.site-brand-corner {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0rem) + 1.1rem);
    left: 1rem;
    z-index: 1200;
    animation: langCornerIn 600ms 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.site-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.58rem 0.78rem 0.58rem 0.66rem;
    border-radius: 1.2rem;
    text-decoration: none;
    color: var(--text, #0d1821);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at top left, rgba(14, 139, 124, 0.12), transparent 44%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    transition:
        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms ease,
        border-color 200ms ease;
}

.site-brand-lockup:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 139, 124, 0.2);
    box-shadow:
        0 16px 44px rgba(15, 23, 42, 0.14),
        0 6px 16px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-brand-lockup__mark {
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 2.9rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,0.96), rgba(255,255,255,0.72)),
        linear-gradient(135deg, rgba(14, 139, 124, 0.12), rgba(40, 88, 240, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.96),
        0 8px 20px rgba(15, 23, 42, 0.08);
}

.site-brand-lockup__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.10));
}

.site-brand-lockup__copy {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

.site-brand-lockup__copy strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.08;
    color: var(--text, #0d1821);
}

.site-brand-rotator {
    position: relative;
    display: inline-block;
    line-height: 1.08;
    height: 1.18em;
    min-width: 15.5ch;
    max-width: min(17ch, calc(100vw - 8rem));
    overflow: hidden;
    vertical-align: bottom;
}

.site-brand-rotator__item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.42em);
    will-change: transform, opacity;
    backface-visibility: hidden;
    animation: nsBrandRotate 18s cubic-bezier(.2,.8,.2,1) infinite;
    animation-fill-mode: none;
}

.site-brand-rotator__item:nth-child(1) { animation-delay: 0s; }
.site-brand-rotator__item:nth-child(2) { animation-delay: 4.5s; }
.site-brand-rotator__item:nth-child(3) { animation-delay: 9s; }
.site-brand-rotator__item:nth-child(4) { animation-delay: 13.5s; }

@keyframes nsBrandRotate {
    0%,
    21% {
        opacity: 1;
        transform: translateY(0);
    }
    25%,
    100% {
        opacity: 0;
        transform: translateY(-0.34em);
    }
}

/* Hard guarantee: never show multiple items at once */
.site-brand-rotator__item { opacity: 0; }
.site-brand-rotator__item:nth-child(1) { animation-name: nsBrandRotate; }
.site-brand-rotator__item:nth-child(2) { animation-name: nsBrandRotate; }
.site-brand-rotator__item:nth-child(3) { animation-name: nsBrandRotate; }
.site-brand-rotator__item:nth-child(4) { animation-name: nsBrandRotate; }

@media (prefers-reduced-motion: reduce) {
    .site-brand-rotator__item {
        animation: none;
        opacity: 0;
        transform: none;
        position: static;
        display: none;
    }
    .site-brand-rotator__item:first-child {
        opacity: 1;
        display: inline;
    }

    .site-brand-subrotator {
        height: auto;
        max-width: none;
    }

    .site-brand-subrotator__item {
        animation: none;
        opacity: 0;
        transform: none;
        position: static;
        display: none;
    }

    .site-brand-subrotator__item:first-child {
        opacity: 1;
        display: inline;
    }
}

.site-brand-lockup__copy small {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--muted, #66726f);
    letter-spacing: 0.02em;
}

.site-brand-subrotator {
    position: relative;
    display: inline-block;
    line-height: 1.15;
    height: 2.2em;
    min-width: 15.5ch;
    max-width: min(23ch, calc(100vw - 8rem));
    overflow: hidden;
}

.site-brand-subrotator__item {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    display: block;
    opacity: 0;
    transform: translateY(0.42em);
    will-change: transform, opacity;
    backface-visibility: hidden;
    animation: nsBrandRotate 18s cubic-bezier(.2,.8,.2,1) infinite;
    animation-fill-mode: none;
}

.site-brand-subrotator__item:nth-child(1) { animation-delay: 0s; }
.site-brand-subrotator__item:nth-child(2) { animation-delay: 4.5s; }
.site-brand-subrotator__item:nth-child(3) { animation-delay: 9s; }
.site-brand-subrotator__item:nth-child(4) { animation-delay: 13.5s; }

.site-brand-subrotator__item { opacity: 0; }

.site-lang-corner .lang-switch {
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@keyframes langCornerIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.site-nav .global-nav__account {
    margin-left: auto !important;
}

.site-nav .global-nav__lang {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .site-brand-corner {
        top: calc(env(safe-area-inset-top, 0rem) + 0.75rem);
        left: 0.55rem;
    }

    .site-brand-lockup {
        gap: 0.58rem;
        padding: 0.5rem 0.88rem 0.5rem 0.52rem;
        min-width: 14.45rem;
    }

    .site-brand-lockup__mark {
        width: 2.4rem;
        height: 2.4rem;
        flex-basis: 2.4rem;
    }

    .site-brand-lockup__copy small {
        display: none;
    }

    .site-brand-lockup__copy {
        width: 9.2rem;
        min-width: 9.2rem;
    }

    .site-brand-rotator {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .site-brand-subrotator {
        display: none;
    }

    .site-lang-corner {
        top: calc(env(safe-area-inset-top, 0rem) + 1.2rem);
        right: 0.55rem;
    }

    .site-nav .global-nav__account > .lang-switch,
    .auth-body .lang-switch {
        width: 100%;
        margin-left: 0;
    }

    .lang-switch__form {
        flex: 1 1 0;
    }

    .lang-switch__btn {
        width: 100%;
        min-width: 0;
    }

    .site-lang-corner .lang-switch {
        width: auto;
    }
}

@media (max-width: 560px) {
    .site-brand-lockup {
        gap: 0.52rem;
        padding: 0.46rem 0.82rem 0.46rem 0.48rem;
        border-radius: 1rem;
        min-width: 13.85rem;
    }

    .site-brand-lockup__mark {
        width: 2.15rem;
        height: 2.15rem;
        flex-basis: 2.15rem;
        border-radius: 0.82rem;
    }

    .site-brand-lockup__copy strong {
        font-size: 0.92rem;
    }

    .site-brand-lockup__copy {
        width: 8.7rem;
        min-width: 8.7rem;
    }

    .site-brand-rotator {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .site-brand-subrotator {
        min-width: 12.75ch;
        max-width: min(16.5ch, calc(100vw - 7.25rem));
    }
}
