:root {
    --rl-page: #090a0d;
    --rl-surface: #0f1117;
    --rl-surface-2: #14171e;
    --rl-line: rgba(255, 255, 255, .09);
    --rl-line-soft: rgba(255, 255, 255, .055);
    --rl-text: #edf0f4;
    --rl-muted: #9ba4b2;
    --rl-faint: #687180;
    --rl-accent: #696ff7;
    --rl-accent-hover: #7b80ff;
    --rl-green: #36c786;
    --rl-radius: 10px;
    --rl-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ridgeline-product {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--rl-text);
    background: var(--rl-page);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
}
.ridgeline-product h1,
.ridgeline-product h2,
.ridgeline-product h3 { color: var(--rl-text); letter-spacing: 0; }
.ridgeline-product h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.14; }
.ridgeline-product h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.2; }
.ridgeline-product p { color: var(--rl-muted); }
.ridgeline-product a:focus-visible,
.ridgeline-product button:focus-visible { outline: 2px solid #aeb1ff; outline-offset: 3px; }
.ridgeline-product .skip-link { position: fixed; z-index: 500; top: 8px; left: 8px; transform: translateY(-150%); padding: .65rem 1rem; border-radius: 7px; color: white; background: var(--rl-accent); }
.ridgeline-product .skip-link:focus { transform: none; }
.rl-container { width: min(calc(100% - 48px), var(--rl-max)); margin-inline: auto; }

.ridgeline-product .nav { position: fixed; background: rgba(9, 10, 13, .9); border-bottom: 1px solid transparent; }
.ridgeline-product .nav.scrolled { background: rgba(9, 10, 13, .96); border-bottom-color: var(--rl-line); }
.ridgeline-product .nav-inner { max-width: var(--rl-max); }
.ridgeline-product .nav-links a.active { color: var(--rl-text); }
.ridgeline-product .nav-toggle { width: 42px; height: 42px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.ridgeline-product .nav-toggle span { width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.ridgeline-product .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ridgeline-product .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ridgeline-product .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.rl-hero-section { padding: 132px 0 80px; border-bottom: 1px solid var(--rl-line-soft); }
.back-platform { display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; color: var(--rl-muted); font-size: .9rem; font-weight: 650; }
.back-platform:hover { color: var(--rl-text); }
.rl-hero-grid { min-height: 540px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.rl-hero-copy { max-width: 700px; }
.rl-label { color: #aeb1ff; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.rl-hero-copy h1 { max-width: 760px; margin: .8rem 0 1.4rem; }
.rl-hero-copy > p { max-width: 620px; font-size: 1.12rem; }
.rl-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.rl-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.2rem; border: 1px solid transparent; border-radius: 8px; color: var(--rl-text); font-weight: 750; transition: background .16s ease, border-color .16s ease; }
.rl-button.primary { color: white; background: var(--rl-accent); }
.rl-button.primary:hover { color: white; background: var(--rl-accent-hover); }
.rl-button.secondary { border-color: var(--rl-line); background: transparent; }
.rl-button.secondary:hover { color: white; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.035); }
.rl-hero-points { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--rl-faint); font-size: .84rem; }
.rl-hero-points li { display: flex; align-items: center; gap: .45rem; }
.rl-hero-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rl-green); }
.rl-identity { min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 1.6rem; border-left: 1px solid var(--rl-line); }
.rl-mark { width: clamp(84px, 9vw, 120px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--rl-line); border-radius: 24px; background: var(--rl-surface); box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.rl-mark img { width: 62%; height: 62%; object-fit: contain; }
.rl-identity > div:last-child { display: grid; }
.rl-identity small { color: var(--rl-faint); font-size: .66rem; font-weight: 750; letter-spacing: .1em; }
.rl-identity strong { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: .12em; }
.rl-identity span { color: var(--rl-muted); font-size: .9rem; }

.rl-app-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.rl-section-intro { max-width: 720px; margin-bottom: 2.4rem; }
.rl-section-intro h2 { margin: .7rem 0 1rem; }
.rl-app-window { isolation: isolate; overflow: hidden; border: 1px solid var(--rl-line); border-radius: 14px; background: #0b0d10; box-shadow: 0 35px 100px rgba(0,0,0,.42); }
.rl-titlebar { height: 32px; padding: 0 8px 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rl-line-soft); background: linear-gradient(to right,transparent,var(--rl-accent) 20%,var(--rl-accent) 80%,transparent) bottom / 100% 2px no-repeat,#0b0d10; color: #777f8d; font-size: .59rem; font-weight: 700; letter-spacing: .13em; }
.rl-window-controls { height: 100%; display: flex; align-items: center; gap: 2px; }
.rl-window-controls i { position: relative; width: 26px; height: 26px; display: block; border-radius: 6px; }
.rl-window-controls i::before,
.rl-window-controls i::after { content: ''; position: absolute; inset: 50% auto auto 50%; display: block; transform: translate(-50%,-50%); }
.rl-window-controls .minimize::before { width: 9px; height: 1px; background: #737b88; }
.rl-window-controls .maximize::before { width: 8px; height: 8px; border: 1px solid #737b88; border-radius: 1px; }
.rl-window-controls .fullscreen::before { width: 9px; height: 9px; border: 1px dashed #737b88; border-radius: 1px; }
.rl-window-controls .close::before,
.rl-window-controls .close::after { width: 10px; height: 1px; background: #737b88; }
.rl-window-controls .close::before { transform: translate(-50%,-50%) rotate(45deg); }
.rl-window-controls .close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.rl-app-body { position: relative; min-height: 630px; display: grid; grid-template-columns: 245px minmax(0,1fr); }
.rl-dm-sidebar { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--rl-line-soft); background: #101114; }
.rl-app-brand { min-height: 43px; padding: 14px 14px 4px; display: flex; align-items: center; }
.rl-app-brand b { color: #aeb1ff; font-size: .64rem; letter-spacing: .13em; }
.rl-search { min-height: 36px; margin: 0 12px 8px; padding: 0 .7rem; display: flex; align-items: center; gap: .55rem; border: 1px solid transparent; border-radius: 11px; color: #727b88; background: #1a1a1a; font-size: .68rem; }
.rl-search i { position: relative; width: 11px; height: 11px; flex: 0 0 11px; border: 1px solid #727b88; border-radius: 50%; }
.rl-search i::after { content: ''; position: absolute; right: -4px; bottom: -2px; width: 5px; height: 1px; transform: rotate(45deg); transform-origin: left center; background: #727b88; }
.rl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px 12px; border-bottom: 1px solid var(--rl-line-soft); }
.rl-tabs span { min-height: 30px; display: grid; place-items: center; border-radius: 9px; color: #777f8d; text-align: center; font-size: .68rem; }
.rl-tabs .active { color: var(--rl-text); background: rgba(255,255,255,.075); }
.rl-new-message { margin: 9px 12px 4px; min-height: 37px; display: flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid rgba(105,111,247,.28); border-radius: 10px; background: rgba(105,111,247,.13); color: #d9daff; font-size: .69rem; font-weight: 700; }
.rl-new-message > span { font-size: .95rem; font-weight: 500; }
.rl-shop { min-height: 31px; margin: 0 12px 8px; display: flex; align-items: center; justify-content: center; gap: .45rem; color: #7f8997; font-size: .63rem; }
.rl-shop > span { color: #8cae9a; font-size: .78rem; }
.rl-conversations { display: grid; gap: 2px; padding: 0 8px; }
.rl-conversation { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--rl-muted); }
.rl-conversation.active { color: var(--rl-text); background: rgba(255,255,255,.075); }
.rl-conversation > div { min-width: 0; display: grid; }
.rl-conversation b,
.rl-conversation small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-conversation b { font-size: .72rem; }
.rl-conversation small,
.rl-conversation time { color: var(--rl-faint); font-size: .62rem; }
.rl-avatar { position: relative; width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 50%; color: white; font-size: .66rem; font-weight: 800; }
.rl-avatar.teal { background: #249e9b; }
.rl-avatar.violet { background: #8359d2; }
.rl-avatar.blue { background: #3e6eb8; }
.rl-avatar.user { background: var(--rl-accent); }
.rl-avatar i,
.rl-profile-avatar i,
.demo-avatar i { position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border: 2px solid #0e1014; border-radius: 50%; background: var(--rl-green); }
.rl-security-note { margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--rl-line-soft); color: #737d8a; font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.rl-security-note span { color: #83a893; }
.rl-account-row { min-height: 59px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 12px; border-top: 1px solid var(--rl-line-soft); background: #0e0f12; }
.rl-account-row div { min-width: 0; display: grid; }
.rl-account-row b { font-size: .7rem; }
.rl-gear { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #777f8d; background: rgba(255,255,255,.035); }

.rl-chat-pane { min-width: 0; display: flex; flex-direction: column; background: #171817; }
.rl-chat-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 16px; border-bottom: 1px solid var(--rl-line-soft); background: #151615; }
.rl-chat-header > div:first-child { display: flex; align-items: center; gap: 10px; }
.rl-chat-header > div:first-child > div { display: grid; }
.rl-chat-header strong { font-size: .75rem; }
.rl-chat-header small { color: #75d39d; font-size: .6rem; }
.rl-chat-header small i { padding-inline: 2px; color: #75808c; font-style: normal; }
.rl-header-actions { display: flex; gap: 4px; }
.rl-header-actions span { position: relative; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #929aa6; background: rgba(255,255,255,.025); }
.rl-header-actions span::before,
.rl-header-actions span::after { content: ''; position: absolute; display: block; }
.rl-header-actions .call::before { width: 10px; height: 10px; border: 1.5px solid currentColor; border-top-color: transparent; border-right-color: transparent; border-radius: 3px 7px 3px 7px; transform: rotate(-28deg); }
.rl-header-actions .video::before { width: 10px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.rl-header-actions .video::after { right: 5px; width: 4px; height: 6px; clip-path: polygon(0 50%,100% 0,100% 100%); background: currentColor; }
.rl-header-actions .shield::before { width: 10px; height: 12px; border: 1.5px solid currentColor; border-radius: 5px 5px 7px 7px; }
.rl-header-actions .palette::before { width: 12px; height: 10px; border: 1.5px solid currentColor; border-radius: 55% 55% 50% 60%; }
.rl-header-actions .palette::after { right: 7px; bottom: 7px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: -5px -2px 0 -1px currentColor, -2px -5px 0 -1px currentColor; }
.rl-header-actions .verify::before { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%; }
.rl-header-actions .verify::after { width: 3px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.rl-header-actions .popout::before { width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 1px; }
.rl-header-actions .popout::after { top: 8px; right: 8px; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; background: #151615; }
.rl-chat-body { flex: 1; min-height: 0; padding: 26px 18px 18px; background: linear-gradient(rgba(17,19,23,.82),rgba(17,19,23,.82)),radial-gradient(circle at 76% 14%,rgba(105,111,247,.16),transparent 43%),#15171a; }
.rl-chat-security { width: min(330px,100%); margin: 0 auto 30px; display: grid; justify-items: center; text-align: center; color: var(--rl-muted); }
.rl-chat-security > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--rl-line); border-radius: 50%; }
.rl-chat-security b { font-size: .7rem; }
.rl-chat-security small { color: var(--rl-faint); font-size: .6rem; }
.rl-day { margin: 18px 0; display: flex; align-items: center; gap: 10px; color: var(--rl-faint); font-size: .62rem; }
.rl-day::before,
.rl-day::after { content: ''; height: 1px; flex: 1; background: var(--rl-line-soft); }
.rl-message-row { max-width: 84%; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; margin-bottom: 14px; }
.rl-message-row.own { margin-left: auto; }
.rl-message-row > div > b { display: block; margin-bottom: 3px; font-size: .67rem; }
.rl-message-row time { color: var(--rl-faint); font-size: .56rem; font-weight: 500; }
.rl-message-row p { margin: 0; padding: .62rem .72rem; border: 1px solid var(--rl-line); border-radius: 5px 11px 11px 11px; color: var(--rl-text); background: rgba(28,31,38,.86); font-size: .7rem; line-height: 1.48; }
.rl-message-row.own p { border-color: rgba(105,111,247,.28); background: rgba(105,111,247,.2); }
.rl-media-preview { width: 210px; aspect-ratio: 1.75; display: flex; flex-direction: column; justify-content: flex-end; padding: .7rem; border: 1px solid var(--rl-line); border-radius: 8px; background: linear-gradient(145deg,#2b335a,#151b2d 55%,#304e4f); }
.rl-media-preview span { font-size: .66rem; font-weight: 700; }
.rl-media-preview small { color: #bdc5d1; font-size: .57rem; }
.rl-composer { min-height: 64px; display: grid; grid-template-columns: 32px 32px 32px minmax(0,1fr) 32px; align-items: center; gap: 6px; padding: 10px 14px 12px; background: #151615; }
.rl-composer-button { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #858e9b; background: rgba(255,255,255,.035); font-size: .78rem; font-weight: 700; }
.rl-composer-button.spoiler { padding-right: 1px; font-family: ui-monospace, "Cascadia Mono", monospace; letter-spacing: 0; }
.rl-composer-button.gif { font-size: .49rem; letter-spacing: .02em; }
.rl-composer-field { min-width: 0; min-height: 36px; display: flex; align-items: center; padding: 0 .72rem; border: 1px solid var(--rl-line-soft); border-radius: 10px; color: #6e7784; background: #1a1c20; font-size: .66rem; }
.rl-composer-button.microphone i { position: relative; width: 7px; height: 12px; display: block; border: 1.5px solid currentColor; border-radius: 5px; }
.rl-composer-button.microphone i::before { content: ''; position: absolute; left: 50%; bottom: -5px; width: 11px; height: 7px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 7px 7px; transform: translateX(-50%); }
.rl-composer-button.microphone i::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 1.5px; height: 4px; transform: translateX(-50%); background: currentColor; }

.rl-profile-popover { position: absolute; z-index: 4; top: 76px; right: 14px; width: 256px; max-height: calc(100% - 91px); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #101216; box-shadow: 0 18px 48px rgba(0,0,0,.48); }
.rl-profile-banner { position: relative; height: 84px; background: linear-gradient(135deg,#585fcf,#29365f 55%,#1f574d); }
.rl-profile-close { position: absolute; top: 8px; right: 8px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #c8ced6; background: rgba(0,0,0,.38); font-size: .85rem; }
.rl-profile-avatar { position: relative; width: 62px; height: 62px; margin: -29px 0 0 12px; display: grid; place-items: center; border: 5px solid #101216; border-radius: 50%; background: #249e9b; font-size: .82rem; font-weight: 800; box-shadow: 0 0 0 2px #6c72f4; }
.rl-profile-avatar i { right: -1px; bottom: -1px; border-color: #101216; }
.rl-profile-content { padding: 7px 12px 14px; }
.rl-profile-status { width: fit-content; max-width: 145px; height: 30px; margin: -42px 0 16px 66px; padding: 0 .65rem; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--rl-line); border-radius: 999px; color: #a5adb8; background: #24262c; font-size: .56rem; }
.rl-profile-content h3 { margin: 0; color: #9fa3ff; font-size: .96rem; }
.rl-profile-content > small { color: var(--rl-faint); font-size: .6rem; }
.rl-profile-section { display: grid; gap: .35rem; margin-top: .95rem; }
.rl-profile-section > b { font-size: .59rem; letter-spacing: .05em; }
.rl-profile-section p { margin: 0; font-size: .64rem; line-height: 1.5; }
.rl-activity { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; align-items: center; }
.rl-activity > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #1ed760; color: #07150b; }
.rl-activity div { min-width: 0; display: grid; }
.rl-activity strong,
.rl-activity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; }
.rl-activity small { color: var(--rl-faint); }
.rl-activity-progress { height: 3px; overflow: hidden; border-radius: 99px; background: #30343a; }
.rl-activity-progress i { display: block; width: 57%; height: 100%; border-radius: inherit; background: #1ed760; }
.rl-link-pill { width: 100%; min-height: 28px; padding: 0 .55rem; display: flex; align-items: center; justify-content: space-between; border-radius: 7px; color: #b7bbff; background: rgba(255,255,255,.04); font-size: .62rem; }
.rl-link-pill i { color: #717986; font-style: normal; }

.rl-feature-section { border-top: 1px solid var(--rl-line-soft); }
.rl-feature-row { min-height: 650px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(460px,1.1fr); align-items: center; gap: clamp(3rem,8vw,8rem); padding: clamp(5rem,10vw,9rem) 0; border-bottom: 1px solid var(--rl-line-soft); }
.rl-feature-row.reverse > :first-child { order: 2; }
.rl-feature-row.reverse > :last-child { order: 1; }
.rl-feature-copy { max-width: 600px; }
.rl-feature-copy h2 { margin: .7rem 0 1rem; }
.rl-feature-copy p { font-size: 1rem; }

.rl-mini-chat,
.rl-customizer,
.rl-profile-demo,
.rl-media-stack,
.rl-device-list { border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: var(--rl-surface); box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.rl-mini-chat { padding: 1.2rem; }
.rl-mini-message { width: 74%; aspect-ratio: 2.1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; border-radius: 8px; background: linear-gradient(145deg,#26305c,#172036 55%,#2e514f); }
.rl-mini-message span { font-weight: 700; }
.rl-mini-message small { color: #c0c6d1; }
.rl-mini-reply { width: 82%; margin: 1rem 0 1rem auto; padding: .8rem 1rem; border-left: 3px solid var(--rl-accent); background: rgba(105,111,247,.12); border-radius: 5px 9px 9px 5px; }
.rl-mini-reply small { color: #bfc2ff; }
.rl-mini-reply p { margin: .2rem 0 0; color: var(--rl-text); }
.rl-mini-composer { min-height: 52px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .7rem; padding: 0 .8rem; border: 1px solid var(--rl-line); border-radius: 8px; background: #15171d; }
.rl-mini-composer p { margin: 0; }
.rl-mini-composer b { color: #c9cbff; }

.rl-customizer { overflow: hidden; }
.rl-customizer-preview { min-height: 230px; padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; background: linear-gradient(rgba(10,12,16,.66),rgba(10,12,16,.66)), radial-gradient(circle at 75% 20%,#344c60,transparent 48%),#131a24; }
.bubble { width: fit-content; max-width: 80%; padding: .7rem .9rem; border: 1px solid var(--rl-line); border-radius: 6px 14px 14px 14px; background: #242830; }
.bubble.right { align-self: flex-end; border-color: rgba(105,111,247,.3); background: rgba(105,111,247,.28); }
.rl-control { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; border-top: 1px solid var(--rl-line-soft); color: var(--rl-muted); }
.swatch { width: 38px; height: 26px; border: 2px solid white; border-radius: 6px; }
.swatch.night { background: linear-gradient(135deg,#14182b,#30505b); }
.shape-options { display: flex; gap: 7px; }
.shape-options i { width: 32px; height: 24px; border: 1px solid var(--rl-line); border-radius: 5px 12px 12px 12px; }
.shape-options i.selected { border-color: #aeb1ff; background: rgba(105,111,247,.2); }
.slider { width: 110px; height: 4px; border-radius: 99px; background: #30343e; }
.slider i { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--rl-accent); }

.rl-profile-demo { position: relative; min-height: 460px; overflow: hidden; }
.demo-banner { height: 150px; background: linear-gradient(135deg,#555dce,#26345d 55%,#215348); }
.demo-avatar { position: relative; width: 96px; height: 96px; margin: -48px 0 0 28px; display: grid; place-items: center; border: 6px solid var(--rl-surface); border-radius: 50%; background: var(--rl-accent); font-weight: 800; font-size: 1.25rem; }
.demo-avatar i { right: 3px; bottom: 3px; border-color: var(--rl-surface); }
.demo-status { position: absolute; top: 126px; left: 120px; max-width: calc(100% - 145px); padding: .5rem .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--rl-line); border-radius: 999px; background: #252830; color: var(--rl-muted); font-size: .76rem; }
.demo-content { display: grid; gap: .35rem; padding: 1rem 28px 2rem; }
.demo-content h3 { margin: 0; }
.demo-content h3 small { margin-left: .4rem; color: var(--rl-muted); font-size: .68rem; font-weight: 500; }
.demo-content > span { color: var(--rl-faint); font-size: .72rem; }
.demo-content > b { margin-top: .8rem; font-size: .68rem; letter-spacing: .06em; }
.demo-content p { margin: 0; }
.demo-link { width: fit-content; padding: .36rem .58rem; border: 1px solid var(--rl-line); border-radius: 6px; color: #bfc2ff !important; }

.rl-media-stack { padding: 1rem; display: grid; gap: .75rem; }
.rl-file-item { min-height: 76px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: .75rem; border: 1px solid var(--rl-line-soft); border-radius: 8px; background: #13161c; }
.file-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 7px; background: rgba(105,111,247,.17); color: #c7c9ff; font-size: .65rem; font-weight: 800; }
.file-icon.gif { background: rgba(54,199,134,.13); color: #8bdeb4; }
.rl-file-item div { min-width: 0; display: grid; }
.rl-file-item strong,
.rl-file-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-file-item small { color: var(--rl-faint); }
.rl-file-item > b { color: var(--rl-green); font-size: .72rem; }
.rl-music-item { min-height: 116px; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 1rem; align-items: center; padding: 1rem; border-top: 1px solid var(--rl-line); }
.music-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #07140c; background: #1ed760; font-size: 1.5rem; }
.rl-music-item div { min-width: 0; display: grid; }
.rl-music-item small { color: #6fe69a; font-weight: 750; }
.rl-music-item span { color: var(--rl-faint); }

.rl-security-section { padding: clamp(5rem,10vw,9rem) 0; border-bottom: 1px solid var(--rl-line-soft); background: #0b0d11; }
.rl-security-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr); align-items: center; gap: clamp(3rem,8vw,8rem); }
.rl-device-list { overflow: hidden; box-shadow: none; }
.rl-device-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid var(--rl-line); }
.rl-device-head span { color: var(--rl-faint); }
.rl-device { min-height: 78px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: .8rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--rl-line-soft); }
.device-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--rl-line); border-radius: 8px; }
.rl-device div { min-width: 0; display: grid; }
.rl-device small { color: var(--rl-faint); }
.rl-device > b { color: var(--rl-green); font-size: .72rem; }
.rl-device-action { min-height: 36px; padding: 0 .7rem; display: inline-flex; align-items: center; border: 1px solid rgba(239,68,68,.28); border-radius: 7px; color: #f29191; background: rgba(239,68,68,.08); font-size: .72rem; }
.rl-device-note { padding: .85rem 1rem; color: var(--rl-faint); font-size: .74rem; }

.rl-final-section { padding: clamp(5rem,10vw,8rem) 0; text-align: center; }
.rl-final-section .rl-container { max-width: 760px; }
.rl-final-section h2 { margin: .75rem 0 1rem; }
.rl-final-section .rl-actions { justify-content: center; }

.platform-language-slot { display: flex; align-items: center; }
.language-control { position: relative; }
.language-trigger { min-height: 38px; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .6rem; border: 1px solid var(--rl-line); border-radius: 8px; color: var(--rl-muted); background: transparent; font: inherit; font-size: .78rem; cursor: pointer; }
.language-menu { position: absolute; z-index: 150; top: calc(100% + 8px); right: 0; min-width: 170px; padding: 6px; border: 1px solid var(--rl-line); border-radius: 9px; background: #111319; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.language-menu[hidden] { display: none; }
.language-option { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; border-radius: 6px; color: var(--rl-muted); background: transparent; font: inherit; cursor: pointer; }
.language-option:hover,
.language-option[aria-checked="true"] { color: var(--rl-text); background: rgba(255,255,255,.055); }

@media (max-width: 1080px) {
    .rl-hero-grid,
    .rl-feature-row,
    .rl-security-grid { grid-template-columns: 1fr; }
    .rl-identity { min-height: 240px; border-left: 0; border-top: 1px solid var(--rl-line); }
    .rl-feature-row.reverse > :first-child,
    .rl-feature-row.reverse > :last-child { order: initial; }
    .rl-app-body { grid-template-columns: 220px minmax(0,1fr); }
    .rl-profile-popover { width: 242px; }
    .rl-header-actions span { width: 27px; height: 27px; }
}

@media (max-width: 900px) {
    .rl-profile-popover { display: none; }
}

@media (max-width: 768px) {
    .rl-container { width: min(calc(100% - 32px), var(--rl-max)); }
    .ridgeline-product .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        position: fixed;
        inset: 65px 0 0 auto;
        width: min(88vw, 360px);
        height: calc(100dvh - 65px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 18px 2rem;
        border-left: 1px solid var(--rl-line);
        background: #0d0f14;
        box-shadow: -20px 0 60px rgba(0,0,0,.45);
        transition: transform .2s ease, opacity .2s ease, visibility .2s;
    }
    .ridgeline-product .nav-links.nav-open { visibility: visible; opacity: 1; transform: translateX(0); }
    .ridgeline-product .nav-links a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--rl-line-soft); font-size: .95rem; }
    .ridgeline-product .nav-links .btn-cta { justify-content: center; margin-top: .8rem; border-bottom: 0; }
    .ridgeline-product .nav-toggle { display: flex; }
    .platform-language-slot { width: 100%; padding: .8rem 0; }
    .language-control,
    .language-trigger { width: 100%; }
    .language-trigger { min-height: 46px; justify-content: space-between; }
    .language-menu { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
    body.nav-open { overflow: hidden; }
    .rl-hero-section { padding-top: 104px; }
    .rl-hero-grid { min-height: 0; padding: 3rem 0; }
    .rl-identity { justify-content: flex-start; }
    .rl-app-body { min-height: 590px; grid-template-columns: 190px minmax(0,1fr); overflow: hidden; }
    .rl-app-window { overflow: hidden; }
    .rl-header-actions span:nth-child(4),
    .rl-header-actions span:nth-child(5),
    .rl-header-actions span:nth-child(6) { display: none; }
    .rl-composer { grid-template-columns: 32px 32px minmax(0,1fr) 32px; }
    .rl-composer-button.spoiler { display: none; }
    .rl-feature-row { min-height: 0; padding-block: 5rem; }
}

@media (max-width: 560px) {
    .rl-actions { display: grid; }
    .rl-button { width: 100%; }
    .rl-hero-points { display: grid; }
    .rl-identity { align-items: flex-start; flex-direction: column; padding-top: 2rem; }
    .rl-app-body { display: block; min-height: 620px; overflow: hidden; }
    .rl-dm-sidebar { display: none; }
    .rl-chat-pane { min-height: 620px; }
    .rl-header-actions span:nth-child(2),
    .rl-header-actions span:nth-child(3) { display: none; }
    .rl-composer { grid-template-columns: 32px minmax(0,1fr) 32px; padding-inline: 10px; }
    .rl-composer-button.gif { display: none; }
    .rl-message-row { max-width: 94%; }
    .rl-feature-row { gap: 2.5rem; }
    .rl-mini-message { width: 90%; }
    .rl-mini-reply { width: 92%; }
    .demo-status { left: 108px; max-width: calc(100% - 125px); }
    .rl-file-item { grid-template-columns: 44px minmax(0,1fr); }
    .rl-file-item > b { grid-column: 2; }
    .rl-security-grid { grid-template-columns: minmax(0,1fr); }
    .rl-device { grid-template-columns: 42px minmax(0,1fr); }
    .rl-device > b,
    .rl-device-action { grid-column: 2; justify-self: start; }
}

@media (max-width: 360px) {
    .rl-app-body,
    .rl-chat-pane { min-height: 590px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
