@font-face {
    font-family: "PEBFont";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PEBFont";
    src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PEBFont";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.peb-box,
.peb-landing {
    --peb-ink: #f5f5f8;
    --peb-ink-dim: #9a9cac;
    --peb-panel: #16171f;
    --peb-panel-alt: #1d1e29;
    --peb-border: rgba(255, 255, 255, 0.08);
    --peb-surface: rgba(255, 255, 255, 0.04);
    --peb-surface-border: rgba(255, 255, 255, 0.10);
    --peb-accent: #ff3b3b;
    --peb-accent-2: #ff6b4a;
    --peb-accent-dark: #e02525;
    --peb-accent-soft: rgba(255, 59, 59, 0.14);
    --peb-error: #ff8a80;
    --peb-success: #52d999;
    font-family: "PEBFont", -apple-system, "Segoe UI", Tahoma, system-ui, sans-serif;
    direction: rtl;
}

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

.peb-box ::selection,
.peb-landing ::selection {
    background: var(--peb-accent);
    color: #fff;
}

.peb-box ::-moz-selection,
.peb-landing ::-moz-selection {
    background: var(--peb-accent);
    color: #fff;
}

.peb-box__input {
    cursor: text;
}

.peb-box__button:disabled {
    cursor: not-allowed;
}

@keyframes peb-ring-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.45); }
    100% { box-shadow: 0 0 0 14px rgba(255, 59, 59, 0); }
}

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

@keyframes peb-pop {
    0% { transform: scale(0.4); opacity: 0; }
    65% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- Stage (animated backdrop around the box) ---------- */

@keyframes peb-stage-drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(34px, -26px, 0) scale(1.1); }
}

@keyframes peb-stage-drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-28px, 22px, 0) scale(1.06); }
}

@keyframes peb-stage-drift-c {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate3d(16px, 18px, 0) scale(1.14); opacity: 0.65; }
}

@keyframes peb-particle-rise {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    12% { opacity: 0.8; }
    88% { opacity: 0.3; }
    100% { transform: translate3d(0, -280px, 0); opacity: 0; }
}

.peb-stage {
    position: relative;
    width: 100%;
    padding: clamp(36px, 8vw, 68px) 16px;
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    justify-content: center;
}

.peb-stage__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.peb-stage__bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.peb-stage__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    will-change: transform;
}

.peb-stage__blob--a {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.5), transparent 70%);
    animation: peb-stage-drift-a 17s ease-in-out infinite;
}

.peb-stage__blob--b {
    width: 260px;
    height: 260px;
    bottom: -90px;
    left: -50px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.4), transparent 70%);
    animation: peb-stage-drift-b 20s ease-in-out infinite;
}

.peb-stage__blob--c {
    width: 200px;
    height: 200px;
    top: 55%;
    left: 60%;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.28), transparent 70%);
    animation: peb-stage-drift-c 23s ease-in-out infinite;
}

.peb-stage__particle {
    position: absolute;
    bottom: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--peb-accent);
    box-shadow: 0 0 8px 1px rgba(255, 59, 59, 0.6);
    opacity: 0;
    will-change: transform, opacity;
    animation: peb-particle-rise 10s ease-in infinite;
}

.peb-stage__particle:nth-child(4) { right: 8%; animation-duration: 10s; animation-delay: 0s; }
.peb-stage__particle:nth-child(5) { right: 22%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 2s; }
.peb-stage__particle:nth-child(6) { right: 38%; animation-duration: 8s; animation-delay: 4s; }
.peb-stage__particle:nth-child(7) { right: 55%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 1s; }
.peb-stage__particle:nth-child(8) { right: 70%; animation-duration: 9s; animation-delay: 3s; }
.peb-stage__particle:nth-child(9) { right: 84%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 5s; }
.peb-stage__particle:nth-child(10) { right: 94%; animation-duration: 14s; animation-delay: 2.5s; }

.peb-stage > .peb-box,
.peb-stage > .peb-box--locked {
    position: relative;
    z-index: 1;
}

/* ---------- Box ---------- */

.peb-box {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 32px);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--peb-panel-alt) 0%, var(--peb-panel) 60%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 54px -30px rgba(0, 0, 0, 0.75);
    text-align: center;
    overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .peb-box {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 35%),
            linear-gradient(165deg, rgba(35, 36, 48, 0.68) 0%, rgba(18, 19, 25, 0.76) 60%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        backdrop-filter: blur(18px) saturate(150%);
    }
}

.peb-box__topline {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--peb-accent), var(--peb-accent-2), var(--peb-accent));
    z-index: 1;
}

.peb-box--locked {
    color: var(--peb-ink-dim);
    padding: 28px 20px;
    font-size: 13.5px;
    line-height: 1.9;
}

.peb-box--locked i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--peb-accent), var(--peb-accent-dark));
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.peb-box__filebar {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--peb-surface-border);
    background: var(--peb-surface);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.peb-box__filebar:hover,
.peb-box__filebar:focus-visible,
.peb-box__filebar.is-dragover {
    border-color: var(--peb-accent);
    background: var(--peb-accent-soft);
    outline: none;
}

.peb-box__filebar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 14px;
    color: var(--peb-ink-dim);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.peb-box__filebar-text.has-file {
    color: var(--peb-ink);
    font-weight: 600;
}

.peb-box__filebar-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 46px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--peb-accent-2), var(--peb-accent));
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.peb-box__info-icon {
    color: var(--peb-ink-dim);
    font-size: 11px;
    cursor: help;
}

.peb-box__hint {
    display: block;
    margin-top: 7px;
    color: var(--peb-ink-dim);
    font-size: 11.5px;
    line-height: 1.6;
}

.peb-box__adv-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 10px 2px;
    background: none;
    border: none;
    border-top: 1px solid var(--peb-border);
    color: var(--peb-ink-dim);
    font-size: 12.5px;
    cursor: pointer;
}

.peb-box__adv-toggle:hover {
    color: var(--peb-ink);
}

.peb-box__adv-toggle span {
    flex: 1;
    text-align: right;
}

.peb-box__adv-chevron {
    font-size: 11px;
    transition: transform 0.15s ease;
}

.peb-box__adv-toggle.is-open .peb-box__adv-chevron {
    transform: rotate(180deg);
}

.peb-box__adv {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    text-align: right;
}

.peb-box__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.peb-box__field-label {
    font-size: 12px;
    color: var(--peb-ink-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.peb-box__field-label i {
    color: var(--peb-accent);
    font-size: 11px;
}

.peb-box__input {
    width: 100%;
    padding: 10px 12px;
    background: var(--peb-surface);
    border: 1px solid var(--peb-surface-border);
    border-radius: 9px;
    color: var(--peb-ink);
    font-size: 13px;
    font-family: inherit;
    color-scheme: dark;
}

.peb-box__input:focus {
    outline: none;
    border-color: var(--peb-accent);
}

.peb-box__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-inline-end: 30px;
    background-image: linear-gradient(45deg, transparent 50%, var(--peb-ink-dim) 50%), linear-gradient(135deg, var(--peb-ink-dim) 50%, transparent 50%);
    background-position: left 16px center, left 11px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.peb-box__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--peb-accent-2), var(--peb-accent));
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.2px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 26px -12px rgba(255, 59, 59, 0.65);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease;
}

.peb-box__button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -40%;
    width: 30%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg) translateX(0);
    transition: transform 0.55s ease;
}

.peb-box__button:not(:disabled):hover::before {
    transform: skewX(-18deg) translateX(-420%);
}

.peb-box__button:disabled {
    opacity: 0.35;
    box-shadow: none;
    cursor: not-allowed;
}

.peb-box__button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -10px rgba(255, 59, 59, 0.75);
}

.peb-box__button:not(:disabled):active {
    transform: translateY(0);
}

.peb-box__button i.fa-spin {
    animation: peb-spin 0.8s linear infinite;
}

/* ---------- Status card (processing / success / error) ---------- */

.peb-box__status {
    max-height: 0;
    margin-top: 0;
    padding: 0 12px;
    opacity: 0;
    border-radius: 11px;
    border: 1px solid transparent;
    overflow: hidden;
    text-align: right;
    transition: max-height 0.32s ease, opacity 0.28s ease, margin-top 0.32s ease, padding 0.32s ease;
}

.peb-box__status.is-visible {
    max-height: 90px;
    margin-top: 14px;
    padding: 10px 12px;
    opacity: 1;
}

.peb-box__status.is-processing {
    background: var(--peb-accent-soft);
    border-color: rgba(255, 59, 59, 0.25);
}

.peb-box__status.is-success {
    background: rgba(82, 217, 153, 0.12);
    border-color: rgba(82, 217, 153, 0.3);
}

.peb-box__status.is-error {
    background: rgba(255, 138, 128, 0.12);
    border-color: rgba(255, 138, 128, 0.3);
}

.peb-box__status-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.peb-box__status-icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.peb-box__status-icon-wrap i {
    font-size: 13px;
    color: var(--peb-ink-dim);
}

.peb-box__status.is-processing .peb-box__status-icon-wrap i {
    color: var(--peb-accent);
    animation: peb-spin 0.9s linear infinite;
}

.peb-box__status.is-success .peb-box__status-icon-wrap i {
    color: var(--peb-success);
    animation: peb-pop 0.4s ease;
}

.peb-box__status.is-error .peb-box__status-icon-wrap i {
    color: var(--peb-error);
    animation: peb-pop 0.4s ease;
}

.peb-box__status-text {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--peb-ink);
}

.peb-box__progress {
    display: none;
    height: 4px;
    border-radius: 999px;
    margin-top: 9px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.peb-box__status.is-processing .peb-box__progress {
    display: block;
}

.peb-box__progress span {
    display: block;
    height: 100%;
    width: 36%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--peb-accent), var(--peb-accent-2));
    animation: peb-progress-sweep 1.15s ease-in-out infinite;
}

@keyframes peb-progress-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(370%); }
}

@media (prefers-reduced-motion: reduce) {
    .peb-box__button::before,
    .peb-box__status-icon-wrap i,
    .peb-box__progress span,
    .peb-stage__blob,
    .peb-stage__particle,
    .peb-landing__blob,
    .peb-landing__particle,
    .peb-glass-card,
    .peb-landing__eyebrow i {
        animation: none !important;
        transition: none !important;
    }

    .peb-stage__particle,
    .peb-landing__particle {
        opacity: 0 !important;
    }
}

/* ---------- Landing page ---------- */

.peb-landing {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 32px);
    color: var(--peb-ink);
}

.peb-landing__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.peb-landing__bg::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
}

.peb-landing__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    will-change: transform;
}

.peb-landing__blob--1 {
    width: 340px;
    height: 340px;
    top: -60px;
    right: -90px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.38), transparent 70%);
    animation: peb-stage-drift-a 18s ease-in-out infinite;
}

.peb-landing__blob--2 {
    width: 300px;
    height: 300px;
    top: 26%;
    left: -110px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.3), transparent 70%);
    animation: peb-stage-drift-b 21s ease-in-out infinite;
}

.peb-landing__blob--3 {
    width: 320px;
    height: 320px;
    top: 56%;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.32), transparent 70%);
    animation: peb-stage-drift-a 19s ease-in-out infinite reverse;
}

.peb-landing__blob--4 {
    width: 260px;
    height: 260px;
    top: 86%;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.26), transparent 70%);
    animation: peb-stage-drift-b 16s ease-in-out infinite;
}

.peb-landing__particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--peb-accent);
    box-shadow: 0 0 8px 1px rgba(255, 59, 59, 0.55);
    opacity: 0;
    will-change: transform, opacity;
    animation: peb-particle-rise 12s ease-in infinite;
}

.peb-landing__particle:nth-child(5) { top: 6%; right: 12%; animation-duration: 11s; animation-delay: 0s; }
.peb-landing__particle:nth-child(6) { top: 18%; right: 45%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 3s; }
.peb-landing__particle:nth-child(7) { top: 32%; right: 78%; animation-duration: 10s; animation-delay: 1.5s; }
.peb-landing__particle:nth-child(8) { top: 46%; right: 25%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: 4s; }
.peb-landing__particle:nth-child(9) { top: 58%; right: 60%; animation-duration: 9s; animation-delay: 2s; }
.peb-landing__particle:nth-child(10) { top: 68%; right: 15%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 5s; }
.peb-landing__particle:nth-child(11) { top: 78%; right: 40%; animation-duration: 12s; animation-delay: 0.5s; }
.peb-landing__particle:nth-child(12) { top: 88%; right: 82%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 3.5s; }
.peb-landing__particle:nth-child(13) { top: 94%; right: 55%; animation-duration: 14s; animation-delay: 2.5s; }
.peb-landing__particle:nth-child(14) { top: 40%; right: 5%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 6s; }

.peb-landing__metabar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    max-width: 780px;
    margin: 0 auto 18px;
    font-size: 12px;
    color: var(--peb-ink-dim);
}

.peb-landing__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
}

.peb-landing__breadcrumb a {
    color: var(--peb-ink-dim);
    text-decoration: none;
}

.peb-landing__breadcrumb a:hover {
    color: var(--peb-accent);
}

.peb-landing__breadcrumb span[aria-current] {
    color: var(--peb-ink);
}

.peb-landing__updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.peb-landing__updated i {
    color: var(--peb-accent);
}

.peb-landing__answer {
    position: relative;
    max-width: 700px;
    margin: 0 auto clamp(26px, 5vw, 40px);
    padding: clamp(14px, 3vw, 18px) 4px;
    text-align: center;
    border-top: 1px solid var(--peb-border);
    border-bottom: 1px solid var(--peb-border);
}

.peb-landing__answer p {
    margin: 0;
    color: var(--peb-ink-dim);
    font-size: 13.5px;
    line-height: 2;
}

.peb-landing__answer strong {
    color: var(--peb-ink);
    font-weight: 700;
}

.peb-landing__hero {
    position: relative;
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 46px);
    padding: clamp(10px, 5vw, 20px) 0 0;
}

.peb-landing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--peb-accent);
    background: none;
    border-radius: 0;
    color: var(--peb-ink-dim);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.peb-landing__eyebrow i {
    color: var(--peb-accent);
    font-size: 13px;
}

.peb-landing__title {
    font-size: clamp(23px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 14px;
    color: var(--peb-ink);
}

.peb-landing__title span {
    color: var(--peb-accent);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .peb-landing__title span {
        background: linear-gradient(120deg, var(--peb-accent-2), var(--peb-accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.peb-landing__lead {
    max-width: 700px;
    margin: 0 auto;
    color: var(--peb-ink-dim);
    font-size: clamp(14px, 2.4vw, 16px);
    line-height: 2.1;
}

.peb-landing__badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
}

.peb-landing__badges li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 10px;
    background: var(--peb-panel-alt);
    border: 1px solid var(--peb-border);
    font-size: 12.5px;
    color: var(--peb-ink-dim);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.peb-landing__badges li:hover {
    border-color: rgba(255, 59, 59, 0.4);
    color: var(--peb-ink);
}

.peb-landing__badges i {
    color: var(--peb-accent);
    font-size: 12px;
}

.peb-landing__tool {
    margin: 0 auto clamp(32px, 6vw, 50px);
    display: flex;
    justify-content: center;
}

.peb-landing__section-title {
    font-size: clamp(19px, 3.2vw, 25px);
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
}

.peb-landing__section-title i {
    color: var(--peb-accent);
    margin-left: 8px;
}

.peb-landing__steps,
.peb-landing__features,
.peb-landing__usecases,
.peb-landing__protection {
    margin-bottom: clamp(32px, 6vw, 50px);
}

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

.peb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.peb-glass-card {
    position: relative;
    padding: 24px 22px;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), var(--peb-panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: right;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.peb-glass-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--peb-accent), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.peb-glass-card:hover {
    border-color: rgba(255, 59, 59, 0.4);
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -26px rgba(255, 59, 59, 0.35);
}

.peb-glass-card:hover::before {
    opacity: 1;
}

.peb-glass-card--step {
    text-align: center;
    padding-top: 32px;
}

.peb-glass-card__num {
    position: absolute;
    top: 16px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--peb-accent-soft);
    color: var(--peb-accent);
    font-size: 12px;
    font-weight: 700;
}

.peb-glass-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--peb-accent-soft);
    color: var(--peb-accent);
    font-size: 16px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.peb-glass-card:hover .peb-glass-card__icon {
    background: linear-gradient(135deg, var(--peb-accent), var(--peb-accent-dark));
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.peb-glass-card--step .peb-glass-card__icon {
    display: inline-flex;
}

.peb-glass-card__title {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 7px;
    color: var(--peb-ink);
}

.peb-glass-card__text {
    font-size: 13px;
    line-height: 1.95;
    color: var(--peb-ink-dim);
    margin: 0;
}

.peb-faq-item {
    padding: 17px 0;
    border-top: 1px solid var(--peb-border);
}

.peb-faq-item__q {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--peb-ink);
}

.peb-faq-item__q i {
    color: var(--peb-accent);
    font-size: 12px;
}

.peb-faq-item__a {
    font-size: 13.5px;
    line-height: 2;
    color: var(--peb-ink-dim);
    margin: 0;
}

.peb-landing__toc {
    display: flex;
    align-items: center;
    gap: 6px 10px;
    max-width: 780px;
    margin: 0 auto clamp(28px, 5vw, 42px);
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--peb-panel-alt);
    border: 1px solid var(--peb-border);
}

.peb-landing__toc-label {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--peb-ink);
    margin-inline-end: 4px;
}

.peb-landing__toc-label i {
    color: var(--peb-accent);
}

.peb-landing__toc-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
}

.peb-landing__toc a {
    font-size: 12.5px;
    color: var(--peb-ink-dim);
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.peb-landing__toc a:hover,
.peb-landing__toc a:focus-visible {
    color: var(--peb-ink);
    border-color: rgba(255, 59, 59, 0.4);
    background: var(--peb-accent-soft);
}

.peb-landing__section-lead {
    max-width: 700px;
    margin: -8px auto 20px;
    text-align: center;
    color: var(--peb-ink-dim);
    font-size: 13.5px;
    line-height: 1.95;
}

.peb-landing__section-note {
    max-width: 780px;
    margin: 16px auto 0;
    color: var(--peb-ink-dim);
    font-size: 13px;
    line-height: 1.95;
    text-align: center;
}

.peb-landing__compare {
    margin-bottom: clamp(32px, 6vw, 50px);
}

.peb-compare-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--peb-panel);
}

.peb-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    font-size: 13px;
    text-align: right;
}

.peb-compare-table th,
.peb-compare-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--peb-border);
    color: var(--peb-ink-dim);
    white-space: nowrap;
}

.peb-compare-table thead th {
    color: var(--peb-ink);
    font-weight: 700;
    background: var(--peb-panel-alt);
    position: sticky;
    top: 0;
}

.peb-compare-table tbody tr:first-child td {
    color: var(--peb-ink);
    font-weight: 600;
    background: var(--peb-accent-soft);
}

.peb-compare-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 640px) {
    .peb-landing__toc {
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }

    .peb-landing__toc-label {
        width: 100%;
        margin-inline-end: 0;
    }

    .peb-landing__toc-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        gap: 8px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .peb-landing__toc-links::-webkit-scrollbar {
        display: none;
    }

    .peb-landing__toc a {
        flex: none;
    }
}

@media (max-width: 420px) {
    .peb-stage {
        padding: 28px 12px;
        border-radius: 20px;
    }

    .peb-box,
    .peb-box--locked {
        padding: 18px;
        border-radius: 15px;
    }

    .peb-glass-card {
        padding: 18px 16px;
    }
}
