:root {
    --ink: #172033;
    --muted: #6d7689;
    --line: #e5e9f1;
    --surface: rgba(255, 255, 255, .92);
    --brand: #6755e8;
    --brand-dark: #513fcf;
    --brand-soft: #f0edff;
    --success: #158f68;
    --success-soft: #e9faf3;
    --danger: #c63d52;
    --shadow: 0 28px 80px rgba(51, 45, 107, .16);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(145deg, #f8f7ff 0%, #eef3ff 55%, #f8fbff 100%);
    overflow-x: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }

.page-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .34;
    pointer-events: none;
}
.page-glow--one { top: -180px; right: -100px; background: #b7a9ff; }
.page-glow--two { bottom: -240px; left: -150px; background: #aed8ff; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 12px; padding: 28px 0; }
.brand__mark {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    color: white; font-weight: 800; font-size: 21px; background: linear-gradient(145deg, #7b6af2, #4c39c3);
    box-shadow: 0 10px 28px rgba(92, 72, 214, .35);
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand div > span { color: var(--muted); font-size: 12px; margin-top: 2px; }

.hero { display: grid; grid-template-columns: 1fr 480px; gap: clamp(42px, 8vw, 110px); align-items: center; min-height: calc(100vh - 170px); padding: 24px 0 70px; }
.eyebrow { display: inline-block; padding: 7px 11px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.hero__copy > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.8; font-size: 16px; }
.steps { display: flex; flex-wrap: wrap; gap: 18px 24px; list-style: none; padding: 0; margin: 34px 0 0; color: #4f596c; font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--brand); background: white; border: 1px solid #dfdbff; border-radius: 50%; font-weight: 700; }

.workspace-card { position: relative; min-height: 470px; padding: 32px; background: var(--surface); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.card-heading__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 24px; }
.card-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

label { display: block; margin-bottom: 9px; color: #4f596c; font-size: 13px; font-weight: 650; }
#code-input { width: 100%; padding: 16px 17px; color: var(--ink); background: #fbfcff; border: 1px solid var(--line); border-radius: 13px; outline: none; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: .18s ease; }
#code-input:focus { border-color: #9b8ff3; box-shadow: 0 0 0 4px rgba(103, 85, 232, .1); background: white; }

.button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 13px; font-weight: 750; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .58; }
.button--primary { margin-top: 16px; color: white; background: linear-gradient(135deg, #735fee, #5845d7); box-shadow: 0 12px 26px rgba(93, 71, 220, .24); }
.button--primary:hover:not(:disabled) { background: linear-gradient(135deg, #6753e5, #4d38cc); }
.button--secondary { color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #ddd7ff; }
.notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; padding: 13px; color: var(--muted); background: #f7f8fc; border-radius: 12px; font-size: 12px; line-height: 1.55; }
.notice > span { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #b8c0d2; border-radius: 50%; font-size: 11px; }

.session-topline, .value-block__row, .product-line { display: flex; align-items: center; justify-content: space-between; }
.status-badge { padding: 7px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 750; }
.status-badge--success { color: var(--success); background: var(--success-soft); }
.text-button { padding: 7px; color: var(--muted); background: transparent; border: 0; font-size: 13px; }
.product-line { gap: 12px; margin: 24px 0 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.product-line > div { min-width: 0; }
.product-line span, .product-line strong { display: block; }
.product-line span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.product-line strong { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.product-line > div:last-child { text-align: right; }
.value-block { margin-top: 14px; padding: 17px; background: #f7f8fc; border: 1px solid #eceef4; border-radius: 15px; }
.value-block--success { background: var(--success-soft); border-color: #cbeee0; }
.value-block__label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.value-block strong { font-size: 24px; letter-spacing: .04em; }
.value-block--success strong { color: var(--success); font-size: 30px; }
.copy-button { padding: 8px 11px; color: var(--brand); background: white; border: 1px solid #dedaf6; border-radius: 9px; font-size: 12px; font-weight: 700; }
.copy-button--success { color: var(--success); border-color: #bfe5d6; }
.sms-text { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #ccebdd; color: #407060; font-size: 12px; line-height: 1.55; word-break: break-word; }
.waiting-block { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 13px 3px; }
.waiting-block strong, .waiting-block span { display: block; }
.waiting-block strong { font-size: 13px; }
.waiting-block div > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.pulse { width: 11px; height: 11px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 0 rgba(103,85,232,.45); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(103,85,232,0); } 100% { box-shadow: 0 0 0 0 rgba(103,85,232,0); } }
.action-stack { display: grid; gap: 10px; }
.action-stack .button { margin: 0; }
.result-expiry { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.error-banner { margin-top: 16px; padding: 12px 14px; color: var(--danger); background: #fff0f2; border: 1px solid #ffd4db; border-radius: 11px; font-size: 13px; line-height: 1.5; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 30px; color: #8a93a5; border-top: 1px solid rgba(111,120,145,.14); font-size: 11px; }

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 12px; }
    .hero__copy { text-align: center; }
    .hero__copy > p { margin-inline: auto; }
    .steps { justify-content: center; }
    .workspace-card { width: min(520px, 100%); margin: 0 auto; }
}

@media (max-width: 520px) {
    .shell { width: min(100% - 24px, 1120px); }
    .brand { padding: 18px 4px; }
    .hero { gap: 30px; padding-bottom: 44px; }
    .hero h1 { font-size: 38px; }
    .hero__copy > p { font-size: 14px; }
    .steps { display: grid; justify-content: start; text-align: left; margin-left: 8px; }
    .workspace-card { padding: 23px 19px; border-radius: 22px; }
    .value-block strong { font-size: 20px; }
    footer { flex-direction: column; text-align: center; }
}
