:root {
    color-scheme: light;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f1f3f6;
    --panel: #ffffff;
    --text: #1d2024;
    --muted: #737b86;
    --subtle: #9098a3;
    --border: #e4e8ed;
    --border-strong: #d5dbe3;
    --input-bg: #f8f9fb;
    --nav-bg: rgba(247, 248, 250, .9);
    --accent: #4facfe;
    --accent-text: #15202b;
    --red: #e34b5b;
    --green: #159b65;
    --overlay: rgba(25, 31, 39, .34);
    --ease: cubic-bezier(.19, 1, .22, 1);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #141619;
    --surface-soft: #1b1e22;
    --panel: #111315;
    --text: #ffffff;
    --muted: #9299a3;
    --subtle: #747c87;
    --border: #292d33;
    --border-strong: #3a4048;
    --input-bg: #171a1e;
    --nav-bg: rgba(13, 13, 13, .9);
    --accent: #4facfe;
    --accent-text: #101820;
    --red: #ff6574;
    --green: #43c98a;
    --overlay: rgba(0, 0, 0, .7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a,
button,
summary {
    touch-action: manipulation;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    transition: background .3s ease, color .3s ease;
}

.hidden {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: rgba(79, 172, 254, .3);
    color: var(--text);
}

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

i.bx {
    line-height: 1;
}

.logo,
.nav-link,
.btn,
.btn-ghost,
.theme-toggle,
.preview,
.feature i,
.mini,
.dot,
.select-trigger,
.select-option,
.password-toggle,
.panel h2,
.field label,
footer {
    -webkit-user-select: none;
    user-select: none;
}

nav {
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 48px;
    background: var(--nav-bg);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(15px);
    transition: background .3s ease, border-color .3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    display: block;
    height: 18px;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    opacity: .64;
    cursor: pointer;
}

.nav-link span {
    position: relative;
    display: block;
    transition: transform .8s var(--ease);
}

.nav-link span::after {
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--text);
    content: attr(data-text);
    white-space: nowrap;
}

.nav-link:hover span,
.nav-link:focus-visible span {
    transform: translateY(-100%);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, color .25s ease, transform .3s var(--ease);
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    background: var(--surface-soft);
    transform: rotate(12deg) scale(1.06);
}

.btn:not(:disabled):hover,
.btn-ghost:not(:disabled):hover,
.password-toggle:hover,
.select-trigger:hover,
.select-option:hover,
.mini:hover,
.dot:hover {
    transform: scale(1.035);
}

.btn:not(:disabled):active,
.btn-ghost:not(:disabled):active,
.theme-toggle:active,
.select-trigger:active,
.select-option:active,
.mini:active,
.dot:active {
    transform: scale(.96);
}

.password-toggle:active {
    transform: translateY(-50%) scale(.94);
}

h1 {
    margin-bottom: 8px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.12;
}

h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 800;
}

.sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.btn,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--ease);
}

.btn {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 800;
}

.btn:hover {
    background: transparent;
    color: var(--text);
}

.btn:disabled {
    opacity: .5;
    cursor: default;
}

.btn-ghost {
    border-color: var(--border);
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.link {
    margin-top: 18px;
    border: 0;
    background: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: color .2s ease, transform .25s var(--ease);
}

.link:hover {
    transform: scale(1.035);
}

.link:active {
    transform: scale(.96);
}

.link:hover {
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 48px 40px;
}

.hero-copy {
    animation: rise-in .8s var(--ease) both;
}

.hero h1 {
    margin-bottom: 16px;
    font-size: 56px;
    line-height: 1.05;
}

.hero .sub {
    max-width: 460px;
    margin-bottom: 26px;
}

.stack {
    position: relative;
    height: 290px;
    perspective: 1100px;
    transform-style: preserve-3d;
    animation: rise-in .85s var(--ease) .12s both;
}

.preview {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(340px, 86%);
    height: 190px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    color: #fff;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(var(--base-rotate, 0deg)) translateY(var(--lift, 0px));
    transition: transform .22s var(--ease);
    will-change: transform;
}

.preview > * {
    transform: translateZ(18px);
}

.s1 {
    --base-rotate: -8deg;
    z-index: 1;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.s2 {
    --base-rotate: -2deg;
    z-index: 2;
    top: 48px;
    left: 44px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.s3 {
    --base-rotate: 5deg;
    z-index: 3;
    top: 96px;
    left: 88px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 48px;
}

.feature {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    animation: rise-in .7s var(--ease) both;
}

.feature:nth-child(1) { animation-delay: .12s; }
.feature:nth-child(2) { animation-delay: .2s; }
.feature:nth-child(3) { animation-delay: .28s; }
.feature:nth-child(4) { animation-delay: .36s; }

.feature i {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 26px;
}

.feature h3 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
}

.feature p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

@keyframes rise-in {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: perspective(1100px) translateY(28px) rotateX(-4deg) scale(.985);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: perspective(1100px) translateY(0) rotateX(0) scale(1);
    }
}

@keyframes page-enter {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: perspective(1200px) translateY(26px) rotateX(-3deg) scale(.985);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: perspective(1200px) translateY(0) rotateX(0) scale(1);
    }
}

.page-reveal {
    transform-origin: center top;
    backface-visibility: hidden;
    animation: page-enter .78s var(--ease) both;
}

:root {
    view-transition-name: root;
}

::view-transition-group(root) {
    animation-duration: .38s;
    animation-timing-function: ease;
}

::view-transition-old(root) {
    animation: theme-fade-out .2s ease both;
}

::view-transition-new(root) {
    animation: theme-fade-in .38s ease both;
}

@keyframes theme-fade-out {
    to { opacity: 0; }
}

@keyframes theme-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

main {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 48px 40px;
}

.head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.head .sub {
    font-size: 15px;
}

.head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pin-panel-sub {
    margin: -10px 0 24px;
    font-size: 13px;
}

.pin-panel .actions {
    margin-top: 10px;
}

.pin-panel .actions .btn {
    flex: 1.35;
}

.pin-panel .actions .btn-ghost {
    flex: .8;
}

.lock {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
}

.lock-box {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.lock-box h1 {
    font-size: 30px;
}

.lock-box .sub {
    margin-bottom: 24px;
    font-size: 14px;
}

.lock-box .btn {
    width: 100%;
}

.field {
    flex: 1;
    min-width: 0;
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    transition: color .3s ease;
}

.field input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .3s ease, background .3s ease;
}

.field input:focus {
    border-color: var(--accent);
}

.field input::placeholder {
    color: var(--subtle);
}

.field input[type="hidden"] {
    display: none;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 19px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s var(--ease);
}

.password-toggle i {
    display: block;
    font-size: 21px;
    line-height: 1;
}

.password-toggle:hover {
    background: var(--surface-soft);
    color: var(--text);
    transform: translateY(-50%) scale(1.035);
}

.row {
    display: flex;
    gap: 16px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 51px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, transform .3s var(--ease);
    will-change: transform;
}

.select-trigger:hover,
.custom-select.open .select-trigger {
    border-color: var(--accent);
}

.select-trigger i {
    color: var(--muted);
    font-size: 18px;
    transition: transform .25s var(--ease);
}

.custom-select.open .select-trigger i {
    transform: rotate(180deg);
}

.select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    max-height: 236px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    opacity: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(9px) scale(.985);
    transform-origin: top center;
    transition: opacity .24s ease, transform .24s var(--ease), visibility .24s ease;
}

.custom-select.open .select-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.select-menu[hidden] {
    display: none;
}

.select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .3s var(--ease);
}

.select-option:hover,
.select-option[aria-selected="true"] {
    background: var(--surface-soft);
}

.select-option[aria-selected="true"] i {
    color: var(--accent);
}

.field-error {
    max-height: 0;
    overflow: hidden;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease), margin .4s var(--ease);
}

.field.invalid .field-error {
    max-height: 40px;
    margin-top: 8px;
    opacity: 1;
    transform: none;
}

.field.invalid label {
    color: var(--red);
}

.field.invalid input {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 7%, var(--input-bg));
    animation: shake .4s;
}

@keyframes shake {
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 20px;
}

.card {
    height: 190px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
    transition: transform .22s var(--ease);
    will-change: transform;
}

.card-top,
.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.alias {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
}

.alias:focus {
    border-bottom-color: rgba(255, 255, 255, .65);
}

.num {
    font-size: 22px;
    font-weight: 500;
    -webkit-user-select: none;
    user-select: none;
}

.foot {
    font-size: 13px;
    font-weight: 700;
}

.meta {
    display: flex;
    gap: 12px;
    opacity: .9;
}

.acts {
    display: flex;
    gap: 6px;
}

.mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.mini:hover {
    background: rgba(255, 255, 255, .32);
}

.mini i {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
}

.empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 0;
    border: 1px dashed var(--border-strong);
    border-radius: 28px;
    color: var(--muted);
    font-weight: 800;
}

.empty i {
    color: var(--subtle);
    font-size: 34px;
}

.overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(9px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.panel {
    position: fixed;
    z-index: 2001;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    padding: 32px;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    background: var(--panel);
    transform: translateX(100%);
    transition: transform .5s var(--ease), background .3s ease;
}

.panel.open {
    transform: none;
}

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

.dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.55;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .25s var(--ease), border-color .25s ease;
}

.dot:hover {
    transform: scale(1.035);
}

.dot.active {
    border-color: var(--text);
}

.dot i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity .2s ease;
}

.dot.active i {
    opacity: 1;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.actions .btn {
    flex: 1.5;
}

.actions .btn-ghost {
    flex: 1;
}

#notifications {
    position: fixed;
    z-index: 3000;
    bottom: 28px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
}

.notification {
    --notice-color: var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 14px 20px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    animation: note-in .5s var(--ease);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.notification.success { --notice-color: var(--green); }
.notification.error { --notice-color: var(--red); }
.notification i {
    color: var(--notice-color);
    font-size: 22px;
}
.notification-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--notice-color);
    transform-origin: left;
    animation: note-bar 3s linear forwards;
}
.notification.out {
    opacity: 0;
    transform: translateY(14px);
}

@keyframes note-in {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: none; }
}

@keyframes note-bar {
    to { transform: scaleX(0); }
}

footer {
    padding: 24px 48px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.foot-in {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--bg);
    border-radius: 10px;
    background: color-mix(in srgb, var(--muted) 28%, transparent);
}

@media (max-width: 800px) {
    nav {
        padding: 16px 20px;
    }
    .nav-right {
        gap: 14px;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 84px 20px 24px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .stack {
        width: 100%;
        max-width: 420px;
        height: 260px;
        margin: 0 auto;
    }
    .preview {
        width: calc(100% - 62px);
        height: 174px;
        padding: 20px;
    }
    .s1 { top: 0; left: 0; }
    .s2 { top: 42px; left: 28px; }
    .s3 { top: 84px; left: 56px; }
    .features {
        padding: 0 20px 32px;
    }
    main {
        padding: 84px 20px 32px;
    }
    .lock {
        padding: 84px 20px 32px;
    }
    .head-actions {
        width: 100%;
    }

    .head-actions > button {
        flex: 1;
    }
    .panel {
        padding: 24px;
    }
    footer {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .nav-right {
        gap: 10px;
    }
    .nav-link {
        font-size: 12px;
    }
    .row {
        gap: 10px;
    }
    .lock-box {
        padding: 26px 22px;
    }
    .panel {
        padding: 22px 18px;
    }
    .dots {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(root),
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

.section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 48px;
}

.section > h2 {
    margin-bottom: 20px;
}

.reveal-hide {
    opacity: 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.step,
.demo-box {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.step-num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 800;
}

.step h3 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
}

.step p,
.demo-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

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

.demo-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.demo-label i {
    color: var(--accent);
    font-size: 16px;
}

.demo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 170px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    font-weight: 800;
}

.demo-num {
    font-size: 22px;
    font-weight: 500;
}

.demo-foot {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.demo-cipher {
    flex: 1;
    min-height: 120px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.demo-box .btn-ghost {
    align-self: flex-start;
}

.faq {
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary i {
    color: var(--muted);
    font-size: 18px;
    transition: transform .3s var(--ease);
}

.faq details.is-open summary i {
    transform: rotate(180deg);
}

.faq p {
    padding-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .section {
        padding: 0 20px 32px;
    }

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

.pin-hint {
    margin-top: 10px;
}

.pin-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.pin-bars span {
    flex: 1;
    height: 4px;
    border-radius: 100px;
    background: var(--border-strong);
    transition: background .3s var(--ease);
}

.pin-hint[data-level="1"] .pin-bars span:nth-child(-n+1) {
    background: var(--muted);
}

.pin-hint[data-level="2"] .pin-bars span:nth-child(-n+2) {
    background: var(--accent);
}

.pin-hint[data-level="3"] .pin-bars span:nth-child(-n+3) {
    background: var(--green);
}

.pin-hint p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

h1,
h2,
h3,
.feature,
.step,
.demo-label,
.demo-card,
.demo-note,
.faq summary,
.notification,
.pin-hint,
.empty,
.card,
.link,
.lock-box .sub {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
.demo-cipher,
.faq p {
    -webkit-user-select: text;
    user-select: text;
}

.mini-icon {
    padding: 6px 8px;
}

.select-option .cur-code {
    font-weight: 800;
}

.select-option .cur-name {
    flex: 1;
    min-width: 0;
    margin: 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 800px) {
    nav {
        gap: 12px;
        padding: 14px 16px;
    }

    .logo {
        flex-shrink: 0;
        font-size: 22px;
    }

    .nav-right {
        gap: 12px;
        min-width: 0;
    }

    #lock-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        padding: 0;
    }

    #lock-btn .btn-label {
        display: none;
    }
}

@media (max-width: 380px) {
    nav {
        gap: 8px;
        padding: 12px;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-link {
        font-size: 11.5px;
    }
}

.pin-hint[data-weak="true"] .pin-bars span:nth-child(1) {
    background: var(--red);
}

.pin-hint[data-weak="true"] p {
    color: var(--red);
}
