:root {
    color-scheme: dark;
    --bg-app: #111113;
    --bg-surface: #19191b;
    --bg-raised: #242429;
    --bg-hover: #2c2c34;
    --bg-active: #34343d;
    --border-subtle: #3f3f4a;
    --border-default: #4f4f5c;
    --text-primary: #e7e7f2;
    --text-secondary: #b2b2c6;
    --text-muted: #7e7e95;
    --accent-solid: #7c3aed;
    --accent-hover: #8a4dff;
    --accent-text: #b7a4ff;
    --accent-bg: #271c45;
    --accent-border: #452d7c;
    --brand-lime: #c6f54a;
    --blue-bg: #0f263c;
    --blue-text: #75baff;
    --blue-border: #14426d;
    --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

.page-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .32;
    background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 0, transparent 720px);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.header-inner,
.hero-inner,
.section-inner,
.journal-inner,
.footer-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

.brand img { width: 26px; height: 26px; }

.brand small {
    padding-left: 10px;
    border-left: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

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

.header-link {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color .2s ease;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--accent-solid);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: background .2s ease, transform .2s ease;
}

.button:hover { background: var(--accent-hover); transform: translateY(-2px); }

.button:focus-visible,
.header-link:focus-visible,
.brand:focus-visible {
    outline: 2px solid #7148cb;
    outline-offset: 3px;
}

.button-small { min-height: 42px; padding: 10px 16px; }

.button-secondary {
    border-color: var(--border-default);
    background: var(--bg-raised);
    color: var(--text-primary);
}

.button-secondary:hover { background: var(--bg-hover); }

.hero { position: relative; z-index: 1; padding: 96px 0 112px; }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(480px, .95fr);
    align-items: center;
    gap: 64px;
}

.label,
.section-label {
    margin: 0 0 20px;
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .08em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    max-width: 16ch;
    margin-bottom: 0;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
}

h1 span {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 12px 6px;
    border-radius: 12px;
    background: var(--accent-solid);
    color: #fff;
}

.lead {
    max-width: 58ch;
    margin: 28px 0 0;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.info-note {
    display: flex;
    gap: 14px;
    max-width: 600px;
    margin-top: 32px;
    padding: 20px;
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    background: var(--blue-bg);
}

.info-note svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--blue-text); }

.info-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-text);
    font-size: 15px;
    font-weight: 600;
}

.info-note p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
}

.preview-wrap {
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--bg-surface);
}

.desktop-bar {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.login-window { padding: 32px; }

.window-title { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }

.window-title img {
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg-raised);
}

.window-title strong,
.window-title span { display: block; }

.window-title strong { font-size: 18px; font-weight: 600; line-height: 1.35; }
.window-title span { margin-top: 2px; color: var(--text-muted); font-size: 13px; line-height: 1.45; }

.qr-demo {
    display: grid;
    grid-template-columns: 160px 48px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.qr-panel {
    text-align: center;
}

.qr-panel strong,
.qr-panel span {
    display: block;
}

.qr-panel strong {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.qr-panel span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.flow-arrow { display: flex; align-items: center; color: var(--accent-text); }
.flow-arrow span { width: 24px; height: 1px; background: var(--accent-border); }
.flow-arrow svg { width: 24px; height: 24px; }

.phone-card {
    padding: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-raised);
}

.phone-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 600;
}

.phone-top img { width: 24px; height: 24px; }

.phone-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
}

.phone-card > strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.phone-card p {
    margin: 8px 0 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.phone-button {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent-solid);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.qr-mark {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 10px;
    background: #fff;
}

.qr-mark i {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 8px solid #111113;
}

.qr-mark i:nth-child(1) { top: 16px; left: 16px; }
.qr-mark i:nth-child(2) { top: 16px; right: 16px; }
.qr-mark i:nth-child(3) { bottom: 16px; left: 16px; }

.qr-mark b { position: absolute; width: 10px; height: 10px; background: #111113; }
.qr-mark b:nth-of-type(1) { top: 68px; left: 68px; }
.qr-mark b:nth-of-type(2) { top: 68px; left: 88px; }
.qr-mark b:nth-of-type(3) { top: 88px; left: 58px; }
.qr-mark b:nth-of-type(4) { top: 88px; left: 78px; }
.qr-mark b:nth-of-type(5) { top: 88px; left: 108px; }
.qr-mark b:nth-of-type(6) { top: 108px; left: 88px; }
.qr-mark b:nth-of-type(7) { top: 118px; left: 108px; }
.qr-mark b:nth-of-type(8) { top: 108px; left: 128px; }

.section {
    position: relative;
    z-index: 1;
    padding: 96px 0;
    border-top: 1px solid var(--border-subtle);
}

.section-label { margin-bottom: 12px; }

h2 {
    max-width: 16ch;
    margin-bottom: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step { position: relative; padding-top: 24px; border-top: 2px solid var(--border-subtle); }

.step::before {
    position: absolute;
    top: -2px;
    left: 0;
    width: 64px;
    height: 2px;
    background: var(--accent-solid);
    content: '';
}

.step span {
    display: block;
    margin-bottom: 32px;
    color: var(--accent-text);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.step h3,
.fact h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.step p,
.fact p {
    max-width: 38ch;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
}

.facts-section { background: var(--bg-surface); }

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.fact {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-raised);
}

.fact-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    background: var(--accent-bg);
    color: var(--accent-text);
}

.fact-icon-info { border-color: var(--blue-border); background: var(--blue-bg); color: var(--blue-text); }
.fact-icon svg { width: 28px; height: 28px; }

.journal-section { position: relative; z-index: 1; padding: 96px 0; }

.journal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px;
    border: 1px solid var(--accent-border);
    border-radius: 16px;
    background: var(--accent-bg);
}

.journal-inner h2 { font-size: 32px; line-height: 1.15; }

.journal-inner p:not(.section-label) {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 17px;
}

.journal-inner .button { flex: 0 0 auto; }
.journal-inner .button svg { width: 20px; height: 20px; }

footer {
    position: relative;
    z-index: 1;
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-brand { color: var(--text-primary); }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 720px; }
    .preview-wrap { max-width: 680px; }
}

@media (max-width: 720px) {
    .header-inner,
    .hero-inner,
    .section-inner,
    .journal-inner,
    .footer-inner { width: min(100% - 32px, 1200px); }
    .header-link,
    .brand small { display: none; }
    .hero { padding: 72px 0 80px; }
    h1 { font-size: 44px; line-height: 1.08; }
    .lead { font-size: 20px; }
    .login-window { padding: 24px; }
    .qr-demo { grid-template-columns: 160px 48px minmax(0, 1fr); }
    .section,
    .journal-section { padding: 72px 0; }
    h2 { font-size: 32px; line-height: 1.15; }
    .steps,
    .facts { grid-template-columns: 1fr; }
    .journal-inner { align-items: flex-start; flex-direction: column; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 440px) {
    .header-inner { min-height: 64px; }
    .button-small { min-height: 40px; padding: 9px 12px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .window-title strong { font-size: 15px; }
    .qr-demo { grid-template-columns: 1fr; justify-items: center; }
    .flow-arrow { transform: rotate(90deg); }
    .phone-card { width: 100%; }
    .fact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
