/* ==========================================================
   Mefos Pay — Nordic Technical
   Amber accent · hairline borders · no gradients · no glass
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0b0b0b;
    --bg-elev: #121212;
    --bg-input: #161616;

    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);

    --text: #ebe8e4;
    --text-dim: #8c8783;
    --text-mute: #5c5855;
    --text-faint: #3a3735;

    --amber: #f5a623;
    --amber-dim: rgba(245, 166, 35, 0.5);
    --amber-soft: rgba(245, 166, 35, 0.08);

    --green: #4ade80;
    --red: #f87171;

    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;

    --max-w: 1180px;

    --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--amber); }

::selection { background: var(--amber); color: #0b0b0b; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ HEADER ============ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { color: var(--text); }
.brand-name em {
    font-style: normal;
    color: var(--text-mute);
    font-weight: 400;
    margin-left: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}
.nav a {
    color: var(--text-dim);
    font-weight: 500;
    position: relative;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--amber);
    transform: translateY(-50%);
}

.nav-cta {
    padding: 8px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--text) !important;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-cta:hover {
    border-color: var(--amber);
    color: var(--amber) !important;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 500; letter-spacing: -0.035em; }
h1 strong { font-weight: 700; color: var(--text); }

h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: 18px; letter-spacing: -0.015em; }
h4 { font-size: 15px; letter-spacing: -0.005em; font-weight: 600; }

p { color: var(--text-dim); }

.eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--amber);
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--amber);
    color: #0b0b0b;
    border-color: var(--amber);
}
.btn-primary:hover {
    background: #ffb84d;
    border-color: #ffb84d;
    color: #0b0b0b;
}

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

.btn .arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HERO ============ */

.hero {
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-metrics {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.metric-value {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}
.metric-label {
    font-size: 12.5px;
    color: var(--text-mute);
    letter-spacing: 0.01em;
}

/* Terminal mock */
.terminal {
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.terminal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-strong);
}
.terminal-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    margin-left: 8px;
}
.terminal-body {
    padding: 20px 22px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
}
.terminal-body .prompt { color: var(--text-mute); margin-right: 8px; }
.terminal-body .cmd { color: var(--text); }
.terminal-body .flag { color: var(--text-dim); }
.terminal-body .str { color: var(--amber); }
.terminal-body .key { color: #a5d8ff; }
.terminal-body .num { color: #b9e59f; }
.terminal-body .ok { color: var(--green); }
.terminal-body .line { display: block; }
.terminal-body .blank { height: 8px; }

/* ============ SECTIONS ============ */

section.block {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 56px;
    align-items: end;
}

.section-head h2 { max-width: 480px; }
.section-head p {
    color: var(--text-dim);
    font-size: 15.5px;
    max-width: 420px;
}

/* ============ FEATURE LIST (not cards) ============ */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
    row-gap: 0;
}

.feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.feature-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    padding-top: 3px;
    letter-spacing: 0.05em;
}
.feature h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}
.feature p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}

/* ============ STEPS ============ */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.step {
    padding: 40px 32px;
    border-right: 1px solid var(--line);
    position: relative;
}
.step:last-child { border-right: none; }
.step-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--amber);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    display: block;
}
.step h4 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}
.step p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ============ CODE ============ */

pre, code {
    font-family: var(--mono);
    font-size: 13px;
}
code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--amber);
    font-size: 12.5px;
}
pre {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    overflow-x: auto;
    line-height: 1.7;
    font-size: 13px;
    position: relative;
}
pre code {
    background: none;
    padding: 0;
    color: var(--text-dim);
    font-size: 13px;
}

.code-block {
    position: relative;
    margin: 20px 0;
}
.code-block .lang {
    position: absolute;
    top: 12px;
    right: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text-mute);
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.15s;
}
.copy-btn:hover { color: var(--amber); border-color: var(--amber-dim); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* ============ CALCULATOR ============ */

.calc-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    padding: 40px;
    max-width: 620px;
    margin: 0 auto;
}
.calc-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}
.calc-input-row label {
    font-size: 13.5px;
    color: var(--text-dim);
    white-space: nowrap;
}
.calc-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 4px 0;
    border-bottom: 1px dashed var(--line-2);
    transition: border-color 0.15s;
}
.calc-input-row input:focus { border-bottom-color: var(--amber); }
.calc-input-row .unit {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}
.calc-lines { display: flex; flex-direction: column; }
.calc-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.calc-line:last-child { border-bottom: none; padding-bottom: 0; }
.calc-line .k {
    font-size: 14px;
    color: var(--text-dim);
}
.calc-line .v {
    font-family: var(--mono);
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}
.calc-line.total {
    padding-top: 20px;
    margin-top: 6px;
    border-top: 1px solid var(--line-2);
    border-bottom: none;
}
.calc-line.total .k {
    color: var(--text);
    font-weight: 500;
}
.calc-line.total .v {
    color: var(--amber);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.calc-note {
    text-align: center;
    color: var(--text-faint);
    font-size: 12.5px;
    margin-top: 24px;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

/* ============ FAQ ============ */

.faq {
    max-width: 780px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.faq-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.faq-item h4::before {
    content: '→ ';
    color: var(--amber);
    font-family: var(--mono);
    margin-right: 4px;
}
.faq-item p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.65;
    padding-left: 24px;
}

/* ============ CTA STRIP ============ */

.cta-strip {
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
}
.cta-strip .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.cta-strip h3 {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.cta-strip h3 strong { font-weight: 700; }
.cta-strip p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-top: 8px;
}

/* ============ FOOTER ============ */

.site-footer {
    padding: 60px 0 40px;
    font-size: 13.5px;
    color: var(--text-mute);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}
.footer-col h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--amber); }
.footer-brand p { color: var(--text-mute); font-size: 13.5px; margin-top: 12px; max-width: 280px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

/* ============ DOCS / STATUS PAGES ============ */

.page-hero {
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    font-size: clamp(34px, 4.5vw, 52px);
    margin-top: 16px;
    font-weight: 500;
}
.page-hero p {
    max-width: 560px;
    margin-top: 16px;
    font-size: 16px;
}

.docs {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    padding: 56px 0 100px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}
.docs-side {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-size: 13.5px;
}
.docs-side h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    margin: 24px 0 12px;
    font-weight: 600;
}
.docs-side h4:first-child { margin-top: 0; }
.docs-side ul { list-style: none; }
.docs-side li a {
    display: block;
    padding: 5px 0;
    color: var(--text-dim);
    font-size: 13.5px;
}
.docs-side li a:hover { color: var(--amber); }

.docs-body { min-width: 0; max-width: 720px; }
.docs-body h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 56px 0 20px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.docs-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.docs-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 36px 0 14px;
    letter-spacing: -0.015em;
}
.docs-body p { color: var(--text-dim); margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
.docs-body ul, .docs-body ol {
    margin: 0 0 18px 22px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}
.docs-body li { margin-bottom: 6px; }

.method {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
    text-transform: uppercase;
}
.method-post { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-dim); }
.method-get { background: rgba(165, 216, 255, 0.08); color: #a5d8ff; border: 1px solid rgba(165, 216, 255, 0.3); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13.5px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
th {
    background: rgba(255, 255, 255, 0.015);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
    font-weight: 600;
    font-family: var(--mono);
}
td { color: var(--text-dim); }
tr:last-child td { border-bottom: none; }

.callout {
    background: var(--amber-soft);
    border-left: 2px solid var(--amber);
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}
.callout.warn { background: rgba(248, 113, 113, 0.06); border-left-color: var(--red); }
.callout.success { background: rgba(74, 222, 128, 0.06); border-left-color: var(--green); }
.callout strong { color: var(--text); }

/* Status page */
.status-list {
    max-width: 780px;
    margin: 48px auto 0;
    border-top: 1px solid var(--line);
}
.status-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 140px;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.status-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.status-stat {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text-dim);
    text-align: right;
}
.status-stat .lbl {
    display: block;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
    font-family: var(--sans);
    font-weight: 600;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    justify-self: end;
}
.status-pill.ok {
    background: rgba(74, 222, 128, 0.08);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.status-pill.bad {
    background: rgba(248, 113, 113, 0.08);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-overall {
    text-align: center;
    padding: 40px 0 20px;
}
.status-overall .badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg-elev);
}
.status-overall .badge-lg.ok { color: var(--green); border-color: rgba(74, 222, 128, 0.3); }
.status-overall .badge-lg.bad { color: var(--red); border-color: rgba(248, 113, 113, 0.3); }
.status-overall .badge-lg .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}
.status-meta {
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    padding: 48px 0;
}

/* ============ ANIMATIONS ============ */

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
    .container { padding: 0 20px; }
    .hero { padding: 64px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-metrics { gap: 24px; flex-wrap: wrap; }
    .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
    .feature-list { grid-template-columns: 1fr; column-gap: 0; }
    .steps { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: 1px solid var(--line); }
    .step:last-child { border-bottom: none; }
    section.block { padding: 64px 0; }
    .cta-strip .container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .docs { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 70px; }
    .docs-side {
        position: static;
        max-height: none;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
    }
    .status-row { grid-template-columns: 1fr auto; gap: 12px; padding: 18px 0; }
    .status-stat { display: none; }
    .nav { gap: 16px; }
    .nav a:not(.nav-cta):not(.active) { display: none; }
    .calc-wrap { padding: 24px; }
    .calc-input-row input { font-size: 22px; }
    .calc-line.total .v { font-size: 18px; }
}

@media (max-width: 500px) {
    h1 { font-size: 32px; }
    .brand-name { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============ LIVE STATS ============ */

.stats-strip { padding: 72px 0; }
.stats-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}
.stats-strip .eyebrow { margin-bottom: 12px; }
.stats-strip h3 {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
    max-width: 420px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 44px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-value {
    font-family: var(--mono);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

@media (max-width: 900px) {
    .stats-strip .container { flex-direction: column; align-items: flex-start; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; width: 100%; }
}

/* ============ DEMO FORM ============ */

.demo-form {
    margin-top: 32px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    max-width: 520px;
}
.demo-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.demo-tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--amber-soft);
    color: var(--amber);
    border: 1px solid var(--amber-dim);
}
.demo-title {
    font-size: 13.5px;
    color: var(--text-dim);
}
.demo-form-body {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.demo-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color 0.15s;
}
.demo-input:focus-within { border-color: var(--amber); }
.demo-input label {
    font-size: 12px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
.demo-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    padding: 2px 0;
    min-width: 0;
}
.demo-input .unit {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
}
.demo-form-body .btn { padding: 10px 18px; font-size: 14px; }

.demo-result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-2);
    font-size: 13.5px;
    animation: fadeIn 0.3s ease;
}
.demo-msg {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}
.demo-msg.ok { color: var(--green); }
.demo-msg.err { color: var(--red); }
.demo-result-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: var(--mono);
    font-size: 12.5px;
}
.demo-result-rows .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.demo-result-rows .row:last-child { border-bottom: none; }
.demo-result-rows .k { color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.demo-result-rows .v { color: var(--text); }
.demo-result-rows .v.ok { color: var(--green); }

.demo-hint {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 500px) {
    .demo-form-body { flex-direction: column; }
    .demo-form-body .btn { width: 100%; justify-content: center; }
}

/* ============ INTEGRATIONS ============ */

.integrations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.integration-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    overflow: hidden;
    transition: border-color 0.2s;
}
.integration-card:hover { border-color: var(--line-2); }
.integration-card.open { border-color: var(--amber-dim); }

.integration-head {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 26px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.integration-head:hover { background: rgba(255,255,255,0.015); }

.integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--amber-soft);
    border: 1px solid var(--amber-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.integration-title h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.integration-title p {
    font-size: 13.5px;
    color: var(--text-mute);
    line-height: 1.4;
}

.integration-toggle {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-mute);
    transition: transform 0.2s, color 0.2s;
}
.integration-card.open .integration-toggle {
    transform: rotate(90deg);
    color: var(--amber);
}

.integration-body {
    display: none;
    padding: 0 26px 26px;
    border-top: 1px solid var(--line);
}
.integration-card.open .integration-body { display: block; }

.integration-body .hint {
    padding: 18px 0 12px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

.integration-body pre {
    background: #08080d;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.65;
    margin: 0;
    position: relative;
}
.integration-body pre code {
    background: none;
    padding: 0;
    border: none;
    color: #e4e4e7;
    font-size: 12.5px;
}

.integration-body .links {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    font-size: 13.5px;
}
.integration-body .links a {
    color: var(--amber);
    text-decoration: none;
}
.integration-body .links a:hover { color: #ffb84d; }

@media (max-width: 700px) {
    .integration-head {
        grid-template-columns: 40px 1fr auto;
        gap: 14px;
        padding: 18px 20px;
    }
    .integration-icon { width: 40px; height: 40px; font-size: 11px; border-radius: 8px; }
    .integration-title h4 { font-size: 15px; }
    .integration-title p { font-size: 12.5px; }
    .integration-body { padding: 0 20px 20px; }
    .integration-body pre { font-size: 11.5px; padding: 16px; }
}

/* ============================================================
   VISUAL UPGRADE 2026
   ============================================================ */

/* 1. Grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 0%, transparent 75%);
}

/* 2. Большие номера секций */
.section-head {
    position: relative;
}
.section-head::before {
    content: attr(data-num);
    position: absolute;
    top: -20px;
    left: -12px;
    font-family: var(--mono);
    font-size: clamp(120px, 14vw, 200px);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.85;
    color: rgba(245, 166, 35, 0.028);
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

/* 3. Мигающий курсор в терминале */
.terminal-body::after {
    content: '▊';
    color: var(--amber);
    animation: blink 1.1s steps(2, start) infinite;
    margin-left: 2px;
    font-size: 13px;
    opacity: 0.9;
}
@keyframes blink {
    to { visibility: hidden; }
}

/* 4. Glow на кнопках при hover */
.btn-primary {
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
}
.btn-primary:hover {
    background: #ffb84d;
    color: #0b0b0b;
    box-shadow:
        0 0 0 4px rgba(245, 166, 35, 0.12),
        0 0 32px rgba(245, 166, 35, 0.35),
        0 8px 24px rgba(245, 166, 35, 0.2);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 2px rgba(245, 166, 35, 0.2),
        0 0 16px rgba(245, 166, 35, 0.25);
}

.btn-ghost {
    transition: all 0.2s;
}
.btn-ghost:hover {
    border-color: var(--amber-dim);
    background: rgba(245, 166, 35, 0.04);
    color: var(--amber);
}

/* 5. Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #f5a623, #ffb84d);
    z-index: 1000;
    width: 0;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
    pointer-events: none;
}

/* 6. Улучшенный hover на feature */
.feature {
    position: relative;
    transition: padding-left 0.25s ease;
}
.feature::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}
.feature:hover::before {
    width: 20px;
}
.feature:hover .feature-num {
    color: var(--amber);
}

/* 7. Улучшенный hover на step */
.step {
    transition: background 0.25s;
    position: relative;
}
.step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--amber) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.step:hover::after {
    transform: scaleX(1);
}
.step:hover {
    background: rgba(245, 166, 35, 0.015);
}

/* 8. Улучшенный hover на FAQ */
.faq-item {
    transition: padding-left 0.25s, border-color 0.25s;
    position: relative;
}
.faq-item:hover {
    padding-left: 12px;
    border-color: var(--amber-dim);
}
.faq-item h4::before {
    transition: color 0.25s, transform 0.25s;
}
.faq-item:hover h4::before {
    color: #ffb84d;
    transform: translateX(2px);
}

/* 9. Улучшенный hover на integration-card */
.integration-card {
    transition: border-color 0.2s, transform 0.2s;
}
.integration-card:hover {
    transform: translateY(-1px);
}
.integration-card.open .integration-head {
    background: rgba(245, 166, 35, 0.02);
}

/* 10. Refined terminal head — добавлю тонкое свечение */
.terminal {
    position: relative;
}
.terminal::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.5), transparent);
    pointer-events: none;
}

/* 11. Улучшенная анимация появления (более плавная) */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* 12. Улучшенный hover на nav */
.nav a:not(.nav-cta) {
    position: relative;
    transition: color 0.2s;
}
.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav a:not(.nav-cta):hover::after,
.nav a.active:not(.nav-cta)::after {
    transform: scaleX(1);
}

/* 13. Метрика — улучшенная типографика */
.metric-value {
    position: relative;
    transition: color 0.3s;
}
.metric:hover .metric-value {
    color: var(--amber);
}

/* 14. Плавный скролл с учётом sticky header — уже есть, но улучшу anchor-margin */
section[id], h2[id], h3[id] {
    scroll-margin-top: 96px;
}

/* 15. Subtil scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0b0b0b;
}
::-webkit-scrollbar-thumb {
    background: #1f1f1f;
    border-radius: 5px;
    border: 2px solid #0b0b0b;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--amber-dim);
}

/* 16. Кнопка «наверх» — плавающая */
.to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--line-2);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 18px;
    text-decoration: none;
    font-family: var(--mono);
}
.to-top.show {
    opacity: 1;
    visibility: visible;
}
.to-top:hover {
    background: var(--amber);
    color: #0b0b0b;
    border-color: var(--amber);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

@media (max-width: 700px) {
    .to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .section-head::before {
        font-size: 96px;
        top: -10px;
        left: 0;
    }
}

/* ============================================================
   VISUAL UPGRADE — WAVE 2
   Spotlight · Particles · Animated gradient · Parallax · Tilt · Noise
   ============================================================ */

/* A. Spotlight за курсором на hero */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(
        circle 500px at var(--mx, 50%) var(--my, 50%),
        rgba(245, 166, 35, 0.06) 0%,
        transparent 60%
    );
    transition: background 0.08s linear;
    z-index: 0;
}
.hero .container { position: relative; z-index: 2; }

/* B. Particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--amber);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
    box-shadow: 0 0 6px rgba(245, 166, 35, 0.6);
}
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% { opacity: 0.7; }
    85% { opacity: 0.4; }
    100% {
        opacity: 0;
        transform: translateY(-120vh) scale(1);
    }
}

/* C. Animated gradient text */
h1 strong {
    background: linear-gradient(
        90deg,
        #ebe8e4 0%,
        #f5a623 25%,
        #ffb84d 50%,
        #f5a623 75%,
        #ebe8e4 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* D. Параллакс в hero */
.hero-grid {
    will-change: transform;
}
.hero-copy {
    transition: transform 0.15s linear;
}
.terminal {
    transition: transform 0.15s linear, box-shadow 0.3s;
    will-change: transform;
}

/* E. Tilt-эффект на карточках (feature, step, integration-card) */
.tilt {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s;
    will-change: transform;
    transform-style: preserve-3d;
}
.tilt:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Card glow при tilt — добавляем блик */
.tilt::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 300px at var(--tx, 50%) var(--ty, 50%),
        rgba(245, 166, 35, 0.06) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.tilt:hover::before { opacity: 1; }

.integration-card.tilt { position: relative; }

/* F. Улучшенный copy-btn — галочка */
.copy-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    text-align: center;
}
.copy-btn.copied {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--green);
    transform: scale(1.05);
}
.copy-btn.copied::before {
    content: '✓ ';
    font-weight: 700;
}

/* G. Noise texture (убирает «пластиковость») */
body {
    position: relative;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* H. Плавные переходы между страницами — fade-in при загрузке */
body {
    animation: pageIn 0.35s ease-out;
}
@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Улучшение: focus-visible для доступности */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Отключаем анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .particle { display: none; }
    .hero::after { display: none; }
    h1 strong { animation: none; }
}

/* ============================================================
   BOLD + RISKY DESIGN + FULL MOBILE
   ============================================================ */

/* === 1. Oversized typography === */
h1 {
    font-size: clamp(42px, 8.5vw, 96px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 500;
}
h1 strong {
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.05em;
}
h2 {
    font-size: clamp(32px, 5vw, 60px);
    letter-spacing: -0.04em;
    line-height: 1.02;
}
.section-title {
    font-size: clamp(32px, 5vw, 60px);
    letter-spacing: -0.04em;
}

/* === 2. Marquee ticker (bold) === */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    background: rgba(245, 166, 35, 0.015);
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 64px;
    animation: scrollLeft 42s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--mono);
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}
.marquee-item::before {
    content: '◆';
    color: var(--amber);
    font-size: 10px;
}
.marquee-item strong {
    color: var(--text);
    font-weight: 600;
}
@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* === 3. Oversized section numbers — shift bolder === */
.section-head {
    position: relative;
    padding-top: 40px;
}
.section-head::before {
    font-size: clamp(140px, 22vw, 280px);
    color: rgba(245, 166, 35, 0.045);
    top: -30px;
    left: -20px;
    letter-spacing: -0.08em;
}

/* === 4. Rotated corner badge (risky) === */
.hero-copy::before {
    content: 'v1.0 · UKRAINE';
    position: absolute;
    top: -30px;
    left: -20px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--text-faint);
    transform: rotate(-90deg);
    transform-origin: left top;
    white-space: nowrap;
    pointer-events: none;
}

/* === 5. Двойные границы на карточках (bolder borders) === */
.integration-card {
    border-width: 1px;
    position: relative;
}
.integration-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--amber);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.integration-card:hover::before,
.integration-card.open::before {
    transform: scaleY(1);
}

/* === 6. Feature cards — станут брутально-геометричными === */
.feature {
    border-top: 2px solid var(--line-2);
    padding: 28px 0 24px;
    transition: border-color 0.3s, padding-left 0.3s;
}
.feature:hover {
    border-top-color: var(--amber);
    padding-left: 12px;
}
.feature-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
}
.feature:hover .feature-num {
    opacity: 1;
    color: var(--amber);
}

/* === 7. Step с большими номерами === */
.step {
    padding: 48px 32px 44px;
    position: relative;
    overflow: hidden;
}
.step::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: var(--mono);
    font-size: 140px;
    font-weight: 700;
    color: rgba(245, 166, 35, 0.05);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.08em;
    transition: color 0.4s;
}
.step:hover::before {
    color: rgba(245, 166, 35, 0.1);
}
.step-num {
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 700;
}

/* === 8. Terminal — толще бордеры, ярче акценты === */
.terminal {
    border: 1.5px solid var(--line-strong);
    box-shadow:
        0 0 0 1px rgba(245, 166, 35, 0.06),
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 100px -30px rgba(245, 166, 35, 0.25);
}

/* === 9. Bold CTA strip — добавлю большие буквы === */
.cta-strip h3 {
    font-size: clamp(28px, 4.5vw, 52px);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1.05;
}
.cta-strip h3 strong {
    color: var(--amber);
    font-weight: 700;
}

/* === 10. FAQ — с брутальным сдвигом === */
.faq-item h4 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.faq-item h4::before {
    content: '↳';
    color: var(--amber);
    font-family: var(--mono);
    margin-right: 12px;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s;
}
.faq-item:hover h4::before {
    transform: translateX(4px) rotate(-8deg);
}

/* ============================================================
   MOBILE — FULL THEME
   ============================================================ */

/* === Hamburger кнопка === */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    z-index: 200;
}
.menu-toggle:active {
    background: rgba(245, 166, 35, 0.06);
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    margin: 4px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* === Mobile menu overlay === */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: #0b0b0b;
    z-index: 150;
    padding: 80px 24px 32px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
}
.mobile-menu nav a {
    padding: 22px 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding-left 0.2s, color 0.2s;
}
.mobile-menu nav a::after {
    content: '→';
    font-family: var(--mono);
    color: var(--text-faint);
    font-size: 20px;
    transition: transform 0.2s, color 0.2s;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:active {
    padding-left: 10px;
    color: var(--amber);
}
.mobile-menu nav a:hover::after,
.mobile-menu nav a:active::after {
    color: var(--amber);
    transform: translateX(4px);
}
.mobile-menu nav a.active {
    color: var(--amber);
}
.mobile-menu-cta {
    margin-top: 40px;
    padding: 18px 24px !important;
    background: var(--amber);
    color: #0b0b0b !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    text-align: center;
    justify-content: center !important;
    border-radius: 6px;
    border: none !important;
    letter-spacing: -0.01em;
}
.mobile-menu-cta::after {
    content: '→' !important;
    color: #0b0b0b !important;
    margin-left: 10px;
}
.mobile-menu-cta:hover,
.mobile-menu-cta:active {
    background: #ffb84d !important;
    padding-left: 24px !important;
}

/* === Отключаем параллакс/партиклы на мобильных для производительности === */
@media (max-width: 900px) {
    /* Hero — перестроение */
    .hero {
        padding: 56px 0 48px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-copy::before {
        display: none;
    }
    .hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding-top: 24px;
    }
    .metric-value {
        font-size: 22px;
    }
    .metric-label {
        font-size: 11px;
    }

    /* Particles мельче и меньше */
    .particle { display: none; }

    /* Terminal уменьшен, читаемый */
    .terminal-body {
        padding: 16px 18px;
        font-size: 11.5px;
        line-height: 1.65;
    }
    .terminal-title { font-size: 11px; }
    .terminal-head { padding: 10px 14px; }

    /* Section-head — упростить на мобильных */
    .section-head::before {
        font-size: 100px;
        top: -8px;
        left: 0;
    }
    .section-head {
        padding-top: 24px;
        margin-bottom: 32px;
    }

    /* Steps — большие цифры */
    .step {
        padding: 36px 24px 32px;
    }
    .step::before {
        font-size: 100px;
        top: -14px;
        right: 14px;
    }

    /* Calc */
    .calc-wrap {
        padding: 24px 20px;
    }
    .calc-input-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .calc-input-row input {
        font-size: 24px;
    }
    .calc-line.total .v {
        font-size: 20px;
    }

    /* Интеграции — карточки компактнее */
    .integration-head {
        padding: 18px 20px;
        grid-template-columns: 44px 1fr auto;
        gap: 14px;
    }
    .integration-icon {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }
    .integration-title h4 {
        font-size: 15px;
    }
    .integration-title p {
        font-size: 12.5px;
    }
    .integration-body {
        padding: 0 20px 20px;
    }
    .integration-body pre {
        padding: 16px;
        font-size: 11.5px;
        line-height: 1.6;
    }

    /* Copy-btn крупнее, для пальцев */
    .copy-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 32px;
        min-width: 70px;
    }

    /* CTA-кнопки вертикально, полная ширина */
    .cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cta-row .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 15px;
    }

    /* Navbar — показываем гамбургер, скрываем ссылки */
    .site-header nav.nav {
        display: none !important;
    }
    .menu-toggle {
        display: block;
    }
    .mobile-menu {
        display: block;
    }

    /* Marquee — быстрее, компактнее */
    .marquee {
        padding: 14px 0;
    }
    .marquee-track {
        gap: 40px;
        animation-duration: 26s;
    }
    .marquee-item {
        font-size: 12px;
        gap: 12px;
    }

    /* Feature-list в одну колонку */
    .feature-list {
        grid-template-columns: 1fr;
    }

    /* CTA strip — компактнее */
    .cta-strip .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cta-strip h3 {
        font-size: 26px;
    }
    .cta-strip .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    /* Footer — 2 колонки */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    /* Stats strip — компактнее */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-value {
        font-size: 24px;
    }

    /* Убираем parallax и tilt на мобильных */
    .hero-copy,
    .terminal {
        transform: none !important;
        transition: none !important;
    }
}

/* === Малые экраны (до 500px) === */
@media (max-width: 500px) {
    .container { padding: 0 18px; }
    h1 {
        font-size: 38px;
        letter-spacing: -0.035em;
    }
    h2 {
        font-size: 28px;
    }
    .section-title {
        font-size: 28px;
    }
    .lead { font-size: 15px; }
    .hero-metrics {
        gap: 12px;
    }
    .metric-value { font-size: 20px; }
    .metric-label { font-size: 10px; }
    .brand-name { font-size: 14px; }
    .mobile-menu nav a { font-size: 22px; padding: 20px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .eyebrow { font-size: 10.5px; }
    .eyebrow::before { width: 14px; }
    .step::before { font-size: 80px; }
    .section-head::before { font-size: 80px; }
    pre { font-size: 11px; padding: 14px; }
    .code-block .lang { font-size: 9.5px; top: 10px; right: 12px; }
    .demo-form { padding: 18px; }
    .demo-form-body { gap: 8px; }
    .demo-input input { font-size: 14px; }
    .demo-form-body .btn { min-height: 48px; font-size: 14px; }
    .to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
    .calc-input-row input { font-size: 20px; }
    .calc-line.total .v { font-size: 17px; }
    .integration-title p { font-size: 12px; }
    .integration-body pre { font-size: 10.5px; padding: 12px; }
    .cta-strip h3 { font-size: 22px; }
    .status-row { padding: 16px 0; }
    .status-pill { font-size: 10.5px; padding: 5px 9px; }
}

/* === Большие экраны (для минимализма) === */
@media (min-width: 1400px) {
    :root {
        --max-w: 1280px;
    }
}

/* Touch-friendly: у всех интерактивных элементов min-height 44px */
@media (hover: none) {
    .btn {
        min-height: 48px;
        padding: 14px 22px;
    }
    .nav a:not(.nav-cta) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .integration-head {
        min-height: 68px;
    }
    .copy-btn {
        min-height: 36px;
    }
}

/* ============================================================
   TERMINAL-STYLE LANDING
   ============================================================ */

body.term-body {
    font-family: var(--mono);
    background: #08080a;
    color: #c9c5be;
    font-size: 14.5px;
    line-height: 1.65;
    letter-spacing: 0;
    padding: 0;
    margin: 0;
}

body.term-body::before,
body.term-body::after {
    display: none;
}

/* === Header — минималистичный === */
.term-header {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    background: rgba(8, 8, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.term-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.term-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}
.term-brand .prompt { color: var(--amber); }
.term-brand .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--amber);
    margin-left: 2px;
    animation: blink 1.05s steps(2, start) infinite;
    vertical-align: middle;
}

.term-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
}
.term-nav a {
    color: var(--text-mute);
    text-decoration: none;
    transition: color 0.15s;
}
.term-nav a::before { content: './'; opacity: 0.4; }
.term-nav a:hover { color: var(--amber); }
.term-nav .term-cta {
    padding: 6px 12px;
    border: 1px solid var(--amber-dim);
    border-radius: 3px;
    color: var(--amber);
    background: var(--amber-soft);
}
.term-nav .term-cta::before { content: '> '; opacity: 0.7; }
.term-nav .term-cta:hover {
    background: var(--amber);
    color: #0b0b0b;
}

/* === Main terminal window === */
.term-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.term-window {
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: #0b0b0d;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(245, 166, 35, 0.04),
        0 30px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 140px -40px rgba(245, 166, 35, 0.18);
    position: relative;
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--text-mute);
    font-family: var(--mono);
}
.term-dots {
    display: flex;
    gap: 6px;
}
.term-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1c1c1e;
}
.term-dots span:nth-child(1) { background: #f56565; }
.term-dots span:nth-child(2) { background: #f5a623; }
.term-dots span:nth-child(3) { background: #4ade80; }
.term-bar-title {
    flex: 1;
    text-align: center;
    letter-spacing: 0.02em;
}
.term-bar-user {
    color: var(--amber);
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* === Terminal content === */
.term-content {
    padding: 32px 40px 48px;
    font-family: var(--mono);
}

.term-line {
    display: block;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.term-section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}
.term-section:last-child { margin-bottom: 0; }

/* Промпт-строка: $ command */
.term-cmd {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
    font-size: 14.5px;
}
.term-cmd .user {
    color: #7cb5ff;
    font-weight: 500;
}
.term-cmd .at { color: var(--text-faint); }
.term-cmd .host { color: #c9a5ff; font-weight: 500; }
.term-cmd .sep { color: var(--text-faint); }
.term-cmd .path { color: var(--amber); }
.term-cmd .dollar { color: var(--text-mute); margin: 0 4px; }
.term-cmd .cmd-text {
    color: var(--text);
    font-weight: 500;
}

/* Мигающий курсор в команде */
.term-cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background: var(--amber);
    vertical-align: -2px;
    margin-left: 2px;
    animation: blink 1.05s steps(2, start) infinite;
}
.term-cursor.done {
    animation: none;
    opacity: 0;
}

/* Типографика вывода */
.term-output {
    padding-left: 8px;
    color: #a8a39b;
    font-size: 14px;
}
.term-output strong { color: #ebe8e4; font-weight: 500; }
.term-output .amber { color: var(--amber); }
.term-output .green { color: var(--green); }
.term-output .red { color: var(--red); }
.term-output .dim { color: var(--text-mute); }
.term-output .faint { color: var(--text-faint); }
.term-output .blue { color: #7cb5ff; }
.term-output .purple { color: #c9a5ff; }
.term-output a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px dashed rgba(245, 166, 35, 0.4);
}
.term-output a:hover {
    color: #ffb84d;
    border-bottom-style: solid;
}
.term-output code {
    background: rgba(245, 166, 35, 0.05);
    color: var(--amber);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 13px;
    border: 1px solid rgba(245, 166, 35, 0.12);
}
.term-output pre {
    background: #06060a;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 16px 18px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #c9c5be;
    overflow-x: auto;
    margin: 10px 0;
    position: relative;
}

/* Hero block */
.term-hero {
    padding-bottom: 28px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line);
}
.term-hero-title {
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 20px;
}
.term-hero-title .amber { color: var(--amber); }

.term-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
}
.term-stat {
    font-size: 13px;
}
.term-stat .k { color: var(--text-faint); }
.term-stat .v { color: var(--amber); font-weight: 600; font-size: 15px; }

/* Features list */
.term-features { font-size: 14px; }
.term-features .row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.term-features .row:last-child { border-bottom: none; }
.term-features .num {
    color: var(--amber);
    font-weight: 600;
}
.term-features .desc strong { color: var(--text); display: block; margin-bottom: 2px; font-weight: 500; }
.term-features .desc span { color: var(--text-mute); font-size: 13px; }

/* Calc interactive */
.term-calc {
    margin-top: 12px;
    padding: 20px;
    border: 1px dashed var(--amber-dim);
    border-radius: 4px;
    background: rgba(245, 166, 35, 0.02);
}
.term-calc-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.term-calc-row label { color: var(--text-mute); font-size: 13px; }
.term-calc-row input {
    background: transparent;
    border: none;
    border-bottom: 1px dashed var(--amber-dim);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 600;
    padding: 4px 0;
    outline: none;
    width: 140px;
}
.term-calc-row .unit { color: var(--text-mute); }
.term-calc-output { font-size: 14px; line-height: 1.9; }
.term-calc-output .key { color: var(--text-mute); display: inline-block; min-width: 220px; }
.term-calc-output .val { color: var(--text); }
.term-calc-output .total { color: var(--amber); font-size: 18px; font-weight: 700; }

/* CTA block */
.term-cta-block {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.term-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
    cursor: pointer;
}
.term-btn-primary {
    background: var(--amber);
    color: #08080a;
}
.term-btn-primary:hover {
    background: #ffb84d;
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
}
.term-btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}
.term-btn-ghost:hover {
    border-color: var(--amber-dim);
    color: var(--amber);
}

/* Footer */
.term-footer {
    text-align: center;
    padding: 32px 0 40px;
    color: var(--text-faint);
    font-size: 12px;
    font-family: var(--mono);
}
.term-footer .cursor-block {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--amber);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1.05s steps(2, start) infinite;
}
.term-footer a {
    color: var(--text-mute);
    text-decoration: none;
    margin: 0 8px;
}
.term-footer a:hover { color: var(--amber); }

/* Mobile */
@media (max-width: 700px) {
    .term-main {
        padding: 20px 12px 40px;
    }
    .term-window {
        border-radius: 6px;
    }
    .term-bar {
        padding: 8px 12px;
        font-size: 10.5px;
    }
    .term-bar-user { display: none; }
    .term-content {
        padding: 20px 18px 32px;
        font-size: 13.5px;
    }
    .term-hero-title {
        font-size: 22px;
    }
    .term-cmd {
        font-size: 13px;
        flex-wrap: wrap;
    }
    .term-output {
        font-size: 13px;
        padding-left: 0;
    }
    .term-features .row {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }
    .term-calc-row input {
        font-size: 18px;
        width: 100px;
    }
    .term-calc-output .key {
        min-width: auto;
        display: block;
    }
    .term-nav {
        gap: 12px;
        font-size: 12px;
    }
    .term-nav a:not(.term-cta):not(:first-child) {
        display: none;
    }
    .term-header .container {
        padding: 0 14px;
    }
    .term-output pre {
        font-size: 11.5px;
        padding: 12px 14px;
    }
}

/* Animation for typed content */
.typed-line {
    display: inline-block;
}
.term-section.reveal-out .typed-line {
    opacity: 0;
}
.term-section.reveal-in .typed-line {
    opacity: 1;
}

/* === FIX: term-btn текст невидим === */
.term-body a.term-btn,
.term-body a.term-btn:visited,
.term-body a.term-btn:hover,
.term-body a.term-btn:active,
.term-body button.term-btn {
    color: #08080a !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.term-body a.term-btn-ghost,
.term-body a.term-btn-ghost:visited {
    color: #ebe8e4 !important;
    background: transparent !important;
    border-color: rgba(255,255,255,0.14) !important;
}

.term-body a.term-btn-ghost:hover {
    color: #f5a623 !important;
    border-color: rgba(245,166,35,0.4) !important;
}

/* На всякий — минимальная высота и padding */
.term-body .term-btn {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 13.5px;
    line-height: 1;
}

/* ============================================================
   TERMINAL PRO — улучшенный терминал-стиль
   ============================================================ */

/* === CRT scanline overlay === */
.term-window::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 3px
    );
    opacity: 0.4;
    border-radius: inherit;
    mix-blend-mode: multiply;
}

/* === Свечение вокруг активных строк === */
.term-cmd {
    position: relative;
    padding: 4px 0;
}
.term-cmd::before {
    content: '';
    position: absolute;
    left: -12px;
    right: -12px;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    background: rgba(245, 166, 35, 0.02);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.term-section:hover .term-cmd::before {
    opacity: 1;
}

/* === Строки вывода — появление по одной (stagger) === */
.term-output > * {
    opacity: 0;
    transform: translateY(4px);
    animation: lineIn 0.4s ease-out forwards;
}
.term-output > *:nth-child(1) { animation-delay: 0.05s; }
.term-output > *:nth-child(2) { animation-delay: 0.10s; }
.term-output > *:nth-child(3) { animation-delay: 0.15s; }
.term-output > *:nth-child(4) { animation-delay: 0.20s; }
.term-output > *:nth-child(5) { animation-delay: 0.25s; }
.term-output > *:nth-child(6) { animation-delay: 0.30s; }
.term-output > *:nth-child(7) { animation-delay: 0.35s; }
.term-output > *:nth-child(8) { animation-delay: 0.40s; }
.term-output > *:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes lineIn {
    to { opacity: 1; transform: translateY(0); }
}

/* === Hero title — больший, красивее === */
.term-hero-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
}
.term-hero-title .amber {
    position: relative;
    display: inline-block;
}
.term-hero-title .amber::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(245, 166, 35, 0.15);
    z-index: -1;
    border-radius: 2px;
}

/* === Метрики — красивее, свечение === */
.term-stat .v {
    text-shadow: 0 0 24px rgba(245, 166, 35, 0.5);
    transition: text-shadow 0.3s;
}
.term-stat:hover .v {
    text-shadow: 0 0 32px rgba(245, 166, 35, 0.9), 0 0 8px rgba(245, 166, 35, 0.6);
}

/* === Кнопки term-btn — glow и анимации === */
.term-btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.term-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transition: left 0.5s;
}
.term-btn-primary:hover::before {
    left: 100%;
}
.term-btn-primary:hover {
    box-shadow:
        0 0 0 4px rgba(245, 166, 35, 0.15),
        0 0 32px rgba(245, 166, 35, 0.5),
        0 8px 24px rgba(245, 166, 35, 0.25);
    transform: translateY(-1px);
}

/* === Feature rows — порядковый hover === */
.term-features .row {
    transition: padding-left 0.25s, border-color 0.25s;
}
.term-features .row:hover {
    padding-left: 8px;
    border-bottom-color: var(--amber);
}
.term-features .row:hover .num {
    text-shadow: 0 0 16px rgba(245, 166, 35, 0.7);
}

/* === FAQ блок === */
.term-output > div:has(.amber):hover {
    color: #ebe8e4;
}

/* === Section переход (scroll reveal) === */
.term-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.term-section.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* === Терминальная строка с ошибкой/успехом — подсветка === */
.term-output .red,
.term-output .green {
    position: relative;
    padding-left: 16px;
}
.term-output .red::before,
.term-output .green::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: pulseDot 1.8s ease-in-out infinite;
}
.term-output .red::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.term-output .green::before { background: var(--green); box-shadow: 0 0 8px var(--green); }

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(0.7); }
}

/* === Calc — улучшенный === */
.term-calc {
    position: relative;
    overflow: hidden;
}
.term-calc::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0.5;
}
.term-calc-row input:focus {
    border-bottom-color: var(--amber);
    box-shadow: 0 4px 16px -4px rgba(245, 166, 35, 0.5);
}

/* === Demo output — красивый === */
#term-demo-output {
    animation: lineIn 0.4s ease-out forwards;
}

/* === Copy-btn — на pre === */
.term-output pre .copy-btn {
    background: rgba(245, 166, 35, 0.06);
    border: 1px solid rgba(245, 166, 35, 0.2);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0;
}
.term-output pre:hover .copy-btn {
    opacity: 1;
}
.term-output pre .copy-btn:hover {
    background: var(--amber);
    color: #08080a;
}
.term-output pre .copy-btn.copied {
    background: var(--green);
    color: #08080a;
    border-color: var(--green);
    opacity: 1;
}

/* === Prompt symbol красивый === */
.term-cmd .dollar {
    position: relative;
    color: var(--amber);
    font-weight: 700;
}
.term-cmd .dollar::after {
    content: '';
    position: absolute;
    inset: -2px -3px;
    border-radius: 3px;
    background: rgba(245, 166, 35, 0.08);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s;
}
.term-cmd:hover .dollar::after {
    opacity: 1;
}

/* === Более выразительный заголовок окна === */
.term-bar {
    position: relative;
}
.term-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 166, 35, 0.15) 50%,
        transparent 100%
    );
}

/* === Terminal window — glow снаружи === */
.term-window {
    position: relative;
}
.term-window::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(245, 166, 35, 0.15),
        transparent 40%,
        transparent 60%,
        rgba(245, 166, 35, 0.08)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* === Footer — статус live === */
.term-footer-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--green);
    font-family: var(--mono);
    margin-bottom: 12px;
}
.term-footer-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulseDot 2s infinite;
}

/* === Мобильный === */
@media (max-width: 700px) {
    .term-hero-title {
        font-size: 26px;
    }
    .term-calc-row input {
        font-size: 18px;
    }
    .term-stat .v {
        font-size: 14px;
    }
}

/* ============================================================
   Общие компоненты для docs/integrations/status в term-стиле
   ============================================================ */

/* === Term-страница (общий каркас) === */
.term-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* === Term-таблицы === */
.term-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 13px;
    margin: 16px 0;
}
.term-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-faint);
    font-weight: 500;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line-2);
    background: rgba(255,255,255,0.01);
}
.term-table td {
    padding: 12px 14px;
    border-bottom: 1px dashed var(--line);
    color: #a8a39b;
    vertical-align: top;
}
.term-table td code {
    color: var(--amber);
    background: rgba(245, 166, 35, 0.05);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 12.5px;
}
.term-table tr:hover td {
    background: rgba(245, 166, 35, 0.02);
}

/* === Term-method badges === */
.term-method {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    margin-right: 10px;
    vertical-align: middle;
}
.term-method-post {
    background: rgba(74, 222, 128, 0.08);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.term-method-get {
    background: rgba(124, 181, 255, 0.08);
    color: #7cb5ff;
    border: 1px solid rgba(124, 181, 255, 0.3);
}

/* === Term-callout === */
.term-callout {
    padding: 14px 18px;
    margin: 18px 0;
    border-left: 2px solid var(--amber);
    background: rgba(245, 166, 35, 0.04);
    font-family: var(--mono);
    font-size: 13px;
    color: #a8a39b;
    line-height: 1.6;
}
.term-callout.warn {
    border-left-color: var(--red);
    background: rgba(248, 113, 113, 0.04);
}
.term-callout.success {
    border-left-color: var(--green);
    background: rgba(74, 222, 128, 0.04);
}
.term-callout strong { color: var(--text); }

/* === Term-h2 / h3 в контенте === */
.term-h2 {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.term-h2::before {
    content: '## ';
    color: var(--amber);
    opacity: 0.5;
}
.term-h3 {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 10px;
}
.term-h3::before {
    content: '### ';
    color: var(--amber);
    opacity: 0.5;
}

/* === Term-p === */
.term-p {
    font-size: 14px;
    color: #a8a39b;
    line-height: 1.7;
    margin-bottom: 14px;
}
.term-p a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px dashed rgba(245, 166, 35, 0.4);
}
.term-p a:hover { border-bottom-style: solid; }
.term-p code {
    color: var(--amber);
    background: rgba(245, 166, 35, 0.05);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 12.5px;
    border: 1px solid rgba(245, 166, 35, 0.12);
}
.term-p strong { color: var(--text); }

/* ============================================================
   TERM v3 — Mobile menu + Interactive shell
   ============================================================ */

/* === Mobile menu — для term-header === */
.term-header .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s;
}
.term-header .menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text);
    margin: 3.5px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}
.term-header .menu-toggle.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.term-header .menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.term-header .menu-toggle.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
    .term-header .term-nav { display: none !important; }
    .term-header .menu-toggle { display: block; }
}

/* Mobile menu оверлей — терминальный стиль */
.term-body .mobile-menu {
    background: #08080a;
    font-family: var(--mono);
}
.term-body .mobile-menu nav a {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 500;
}
.term-body .mobile-menu nav a::before {
    content: './';
    color: var(--amber);
    margin-right: 6px;
    opacity: 0.6;
}
.term-body .mobile-menu-cta {
    font-family: var(--mono);
}
.term-body .mobile-menu-cta::before {
    content: '> ';
}

/* === Interactive shell === */
.term-shell {
    border-top: 1px dashed var(--line);
    padding-top: 28px;
    margin-top: 56px;
}
.shell-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 14px 0 8px;
    font-family: var(--mono);
    font-size: 14px;
    flex-wrap: wrap;
}
.shell-line .user { color: #7cb5ff; font-weight: 500; }
.shell-line .at { color: var(--text-faint); }
.shell-line .host { color: #c9a5ff; font-weight: 500; }
.shell-line .sep { color: var(--text-faint); }
.shell-line .path { color: var(--amber); }
.shell-line .dollar { color: var(--text-mute); margin: 0 4px; }
.shell-input {
    flex: 1;
    min-width: 180px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    padding: 4px 0;
    caret-color: var(--amber);
}
.shell-input::placeholder {
    color: var(--text-faint);
    opacity: 0.45;
}

.shell-hint {
    font-size: 11px;
    color: var(--text-faint);
    margin-left: 10px;
    font-family: var(--mono);
    opacity: 0;
    transition: opacity 0.2s;
    letter-spacing: 0.04em;
}
.shell-hint.show { opacity: 0.8; }

.shell-history {
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.75;
    color: #a8a39b;
    margin-top: 6px;
}
.shell-history .entry {
    margin-bottom: 14px;
    animation: lineIn 0.3s ease-out;
}
.shell-history .entry .cmd-line {
    color: var(--text);
    font-weight: 500;
}
.shell-history .entry .cmd-line::before {
    content: '> ';
    color: var(--amber);
    font-weight: 700;
}
.shell-history .entry .out {
    padding-left: 16px;
    color: #a8a39b;
    white-space: pre-wrap;
    word-break: break-word;
}
.shell-history .entry .out.success { color: var(--green); }
.shell-history .entry .out.error { color: var(--red); }
.shell-history .entry .out.dim { color: var(--text-mute); }
.shell-history .entry .out a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px dashed rgba(245, 166, 35, 0.4);
}
.shell-history .entry .out a:hover { border-bottom-style: solid; }
.shell-history .entry .out code {
    color: var(--amber);
    background: rgba(245, 166, 35, 0.05);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 12.5px;
}
.shell-history .entry .out strong { color: var(--text); }
.shell-history .entry .out .amber { color: var(--amber); }
.shell-history .entry .out .green { color: var(--green); }
.shell-history .entry .out .red { color: var(--red); }
.shell-history .entry .out pre {
    margin: 8px 0;
    padding: 12px 14px;
    font-size: 12.5px;
    background: #06060a;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow-x: auto;
}

/* Хинт внизу шелла */
.shell-hint-line {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 14px;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.shell-hint-line kbd {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--line-2);
    border-radius: 3px;
    background: rgba(255,255,255,0.02);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-dim);
    margin: 0 2px;
}

/* ============================================================
   MERCHANT DASHBOARD LANDING
   ============================================================ */

body.merchant-body {
    font-family: var(--sans);
    background: #0a0a0b;
    color: var(--text);
    letter-spacing: -0.01em;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
}

body.merchant-body::before,
body.merchant-body::after { display: none; }

/* === Header === */
.m-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
    background: rgba(10,10,11,0.92);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.m-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.m-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.m-brand svg { width: 24px; height: 24px; display: block; }
.m-brand em {
    font-style: normal;
    color: var(--text-mute);
    font-weight: 400;
    margin-left: 2px;
}
.m-nav {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 14px;
}
.m-nav a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 500;
}
.m-nav a:hover { color: var(--text); }
.m-nav a.active { color: var(--text); }
.m-nav-cta {
    padding: 10px 20px;
    background: var(--amber);
    color: #0a0a0b !important;
    border-radius: 10px;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    transition: all 0.2s;
}
.m-nav-cta:hover {
    background: #ffb84d;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245,166,35,0.3);
}

/* === Hero === */
.m-hero {
    padding: 72px 0 40px;
    text-align: center;
    position: relative;
}
.m-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.m-hero .container { position: relative; z-index: 1; }

.m-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    border-radius: 100px;
    font-size: 13px;
    color: #6ee7b7;
    font-weight: 500;
    margin-bottom: 24px;
}
.m-hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 2s infinite;
}

.m-hero h1 {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 auto 20px;
    max-width: 880px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.m-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-hero-lead {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.55;
}

.m-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}
.m-btn-primary {
    background: var(--amber);
    color: #0a0a0b;
}
.m-btn-primary:hover {
    background: #ffb84d;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(245,166,35,0.35);
    color: #0a0a0b;
}
.m-btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,0.14);
}
.m-btn-ghost:hover {
    border-color: rgba(245,166,35,0.4);
    color: var(--amber);
}
.m-btn .arrow { transition: transform 0.2s; }
.m-btn:hover .arrow { transform: translateX(3px); }

/* === Merchant app mockup === */
.merchant-app {
    max-width: 1120px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: #0e0e10;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(245,166,35,0.04),
        0 40px 100px -30px rgba(0,0,0,0.8),
        0 0 200px -60px rgba(245,166,35,0.2);
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 560px;
    position: relative;
}

/* Sidebar */
.m-sidebar {
    background: #0a0a0b;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 22px 14px;
    font-size: 14px;
}
.m-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.m-sidebar-brand svg { width: 20px; height: 20px; }
.m-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.m-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
}
.m-sidebar-item:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text);
}
.m-sidebar-item.active {
    background: rgba(245,166,35,0.08);
    color: var(--amber);
}
.m-sidebar-item .icon {
    width: 16px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}
.m-sidebar-footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.m-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}
.m-sidebar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), #ffb84d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0b;
    font-size: 13px;
    flex-shrink: 0;
}
.m-sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.m-sidebar-user-name {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-sidebar-user-status {
    font-size: 11px;
    color: var(--green);
}

/* Main content */
.m-main {
    padding: 28px 32px;
    overflow-y: auto;
}

.m-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.m-main-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
}
.m-main-subtitle {
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 2px;
}
.m-main-actions {
    display: flex;
    gap: 10px;
}
.m-btn-sm {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.m-btn-sm-primary {
    background: var(--amber);
    color: #0a0a0b;
}
.m-btn-sm-primary:hover {
    background: #ffb84d;
    color: #0a0a0b;
}
.m-btn-sm-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-color: rgba(255,255,255,0.08);
}
.m-btn-sm-ghost:hover {
    border-color: rgba(245,166,35,0.4);
    color: var(--amber);
}

/* Balance card */
.m-balance {
    background: linear-gradient(135deg, #17171a 0%, #121214 100%);
    border: 1px solid rgba(245,166,35,0.12);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.m-balance::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.m-balance-label {
    font-size: 12.5px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 500;
}
.m-balance-value {
    font-family: var(--mono);
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.035em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.m-balance-value .unit {
    font-size: 20px;
    color: var(--text-mute);
    font-weight: 500;
}
.m-balance-meta {
    font-size: 13px;
    color: var(--text-mute);
}
.m-balance-meta strong { color: var(--green); font-weight: 600; }

.m-balance-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

/* Stats grid */
.m-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.m-stat {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s;
}
.m-stat:hover {
    border-color: rgba(245,166,35,0.15);
}
.m-stat-icon {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.85;
}
.m-stat-label {
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    font-weight: 500;
}
.m-stat-value {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.m-stat-change {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}
.m-stat-change.up { color: var(--green); }
.m-stat-change.down { color: var(--red); }
.m-stat-change.neutral { color: var(--text-mute); }

/* Transactions */
.m-tx-section {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.m-tx-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.m-tx-header a {
    font-size: 12px;
    color: var(--amber);
    text-decoration: none;
    font-weight: 500;
}
.m-tx-list {
    padding: 4px 0;
}
.m-tx-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 20px;
    font-size: 13.5px;
    transition: background 0.15s;
}
.m-tx-row:hover {
    background: rgba(255,255,255,0.02);
}
.m-tx-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(74,222,128,0.1);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.m-tx-icon.out {
    background: rgba(248,113,113,0.1);
    color: var(--red);
}
.m-tx-title {
    color: var(--text);
    font-weight: 500;
}
.m-tx-title small {
    display: block;
    color: var(--text-mute);
    font-size: 11.5px;
    font-weight: 400;
    margin-top: 2px;
}
.m-tx-amount {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--green);
    white-space: nowrap;
}
.m-tx-amount.out { color: var(--red); }
.m-tx-time {
    font-size: 11.5px;
    color: var(--text-faint);
    font-family: var(--mono);
    white-space: nowrap;
}

/* Chart */
.m-chart-wrap {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.m-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.m-chart-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.m-chart-total {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: -0.02em;
}
.m-chart-svg {
    width: 100%;
    height: 100px;
    display: block;
}

/* Mobile */
@media (max-width: 900px) {
    .merchant-app {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .m-sidebar {
        display: none;
    }
    .m-main {
        padding: 22px 18px;
    }
    .m-balance-value {
        font-size: 32px;
    }
    .m-balance {
        padding: 20px;
    }
    .m-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .m-stat-value {
        font-size: 18px;
    }
    .m-hero h1 {
        font-size: 34px;
    }
    .m-hero {
        padding: 48px 0 32px;
    }
    .m-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .m-hero-actions .m-btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }
    .m-nav a:not(.m-nav-cta) { display: none; }
    .m-tx-row {
        grid-template-columns: 32px 1fr auto;
        gap: 10px;
        padding: 12px 16px;
    }
    .m-tx-time { display: none; }
}

@media (max-width: 500px) {
    .m-stats { grid-template-columns: 1fr; }
    .m-balance-value { font-size: 28px; }
    .m-hero h1 { font-size: 28px; }
    .m-hero-lead { font-size: 15px; }
}

/* === Landing sections — в fintech-стиле === */
.m-section {
    padding: 88px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.m-section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin: 0 auto 16px;
    max-width: 720px;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.m-section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 56px;
}

.m-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 1020px;
    margin: 0 auto;
}
.m-feature {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 26px;
    transition: all 0.25s;
}
.m-feature:hover {
    border-color: rgba(245,166,35,0.18);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.m-feature-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.m-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.m-feature p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
}

/* Steps */
.m-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}
.m-step {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 28px;
    position: relative;
}
.m-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amber), #ffb84d);
    color: #0a0a0b;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(245,166,35,0.3);
}
.m-step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.m-step p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .m-steps { grid-template-columns: 1fr; }
}

/* Calculator */
.m-calc-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 32px;
}
.m-calc-input {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 24px;
}
.m-calc-input label {
    font-size: 14px;
    color: var(--text-dim);
    white-space: nowrap;
}
.m-calc-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    transition: border-color 0.15s;
    min-width: 0;
}
.m-calc-input input:focus { border-bottom-color: var(--amber); }
.m-calc-input .unit {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-mute);
    font-weight: 500;
}
.m-calc-rows {
    display: flex;
    flex-direction: column;
}
.m-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    font-size: 14px;
}
.m-calc-row .k { color: var(--text-dim); }
.m-calc-row .v {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
}
.m-calc-row.total {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
    padding-top: 18px;
}
.m-calc-row.total .k { color: var(--text); font-weight: 600; }
.m-calc-row.total .v { color: var(--amber); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* FAQ */
.m-faq {
    max-width: 780px;
    margin: 0 auto;
}
.m-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.m-faq-item:last-child { border-bottom: none; }
.m-faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.m-faq-item h4::before {
    content: '→';
    color: var(--amber);
    font-family: var(--mono);
    flex-shrink: 0;
}
.m-faq-item p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
    padding-left: 24px;
}

/* CTA strip */
.m-cta {
    padding: 72px 0;
    text-align: center;
}
.m-cta h3 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.m-cta p {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 28px;
}

/* Footer */
.m-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 48px 0 32px;
    font-size: 13.5px;
    color: var(--text-mute);
}
.m-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 28px;
}
.m-footer-col h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
    margin: 0 0 14px;
    font-weight: 600;
}
.m-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.m-footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}
.m-footer-col a:hover { color: var(--amber); }
.m-footer-brand p {
    color: var(--text-mute);
    font-size: 13.5px;
    margin-top: 14px;
    max-width: 280px;
    line-height: 1.55;
}
.m-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}
.m-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.m-footer-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulseDot 2s infinite;
}

@media (max-width: 700px) {
    .m-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 500px) {
    .m-footer-grid { grid-template-columns: 1fr; }
    .m-section { padding: 56px 0; }
    .m-calc-wrap { padding: 22px; }
    .m-calc-input input { font-size: 22px; }
}

/* ============================================================
   DASH PRO — анимации + live-виджеты + sparkline
   ============================================================ */

/* === Reveal при скролле === */
.m-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.m-reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* === Glow вокруг балансовой карты === */
.m-balance {
    position: relative;
    animation: balanceGlow 4s ease-in-out infinite;
}
@keyframes balanceGlow {
    0%, 100% { box-shadow: 0 0 60px -20px rgba(245,166,35,0.15); }
    50% { box-shadow: 0 0 80px -15px rgba(245,166,35,0.28); }
}

/* === Sparkline в карточке баланса === */
.m-balance-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    opacity: 0.35;
}
.m-balance-sparkline svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* === Live-курс USDT/UAH в шапке кабинета === */
.m-rate-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(74,222,128,0.06);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
}
.m-rate-widget::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 2s infinite;
}
.m-rate-widget .rate-value {
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.m-rate-widget .rate-label {
    color: var(--text-mute);
    font-size: 11.5px;
}

/* === Live-счётчик «работаем N дней» === */
.m-uptime-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.m-uptime-widget strong {
    color: var(--amber);
    font-weight: 700;
}

/* === Пульсация транзакций (новая запись) === */
@keyframes newTx {
    0% {
        background: rgba(74,222,128,0.15);
        transform: translateX(-8px);
        opacity: 0;
    }
    50% {
        background: rgba(74,222,128,0.08);
    }
    100% {
        background: transparent;
        transform: translateX(0);
        opacity: 1;
    }
}
.m-tx-row.new {
    animation: newTx 1.5s ease-out;
}

/* === Hover-glow для stats === */
.m-stat {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.m-stat::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.m-stat:hover::before { opacity: 1; }
.m-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(245,166,35,0.22);
}

/* === Пульсирующие цифры в статах === */
.m-stat-value.updating {
    animation: statFlash 0.6s ease-out;
}
@keyframes statFlash {
    0%, 100% { color: var(--text); }
    50% { color: var(--amber); }
}

/* === Animated gradient по hero-заголовку === */
.m-hero h1 em {
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 50%, #f5a623 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradient 6s ease-in-out infinite;
}
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Улучшенные плавающие бейджи === */
.m-hero-eyebrow {
    position: relative;
    overflow: hidden;
}
.m-hero-eyebrow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(110,231,183,0.15), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    to { left: 100%; }
}

/* === Toast-уведомление === */
.m-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #141416;
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7), 0 0 40px -20px rgba(74,222,128,0.4);
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
}
.m-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.m-toast-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(74,222,128,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.m-toast-body { min-width: 0; }
.m-toast-title {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 2px;
}
.m-toast-meta {
    font-size: 12px;
    color: var(--text-mute);
    font-family: var(--mono);
}

/* === Отзывы === */
.m-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1020px;
    margin: 0 auto;
}
.m-testimonial {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 26px;
    transition: all 0.25s;
}
.m-testimonial:hover {
    border-color: rgba(245,166,35,0.18);
    transform: translateY(-2px);
}
.m-testimonial-text {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 18px;
}
.m-testimonial-text::before {
    content: '"';
    color: var(--amber);
    font-size: 26px;
    line-height: 1;
    margin-right: 4px;
    vertical-align: -6px;
    font-family: Georgia, serif;
}
.m-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.m-testimonial-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), #ffb84d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0b;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.m-testimonial-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.m-testimonial-role {
    font-size: 12px;
    color: var(--text-mute);
}

/* === Logo cloud (интеграции) === */
.m-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 0;
    opacity: 0.7;
}
.m-logo {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-mute);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
.m-logo:hover { color: var(--amber); }

/* === Большая цифра «5 минут» === */
.m-feature-big {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1020px;
    margin: 32px auto 0;
}
.m-big-stat {
    background: linear-gradient(135deg, #17171a 0%, #121214 100%);
    border: 1px solid rgba(245,166,35,0.12);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.m-big-stat:hover {
    border-color: rgba(245,166,35,0.25);
    transform: translateY(-3px);
}
.m-big-stat::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.m-big-stat-value {
    font-family: var(--mono);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #f5a623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.m-big-stat-value .unit {
    font-size: 22px;
    color: var(--text-mute);
    -webkit-text-fill-color: var(--text-mute);
    font-weight: 500;
}
.m-big-stat-label {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}
.m-big-stat-note {
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 6px;
}

@media (max-width: 700px) {
    .m-feature-big { grid-template-columns: 1fr; }
    .m-big-stat-value { font-size: 42px; }
    .m-toast {
        left: 16px; right: 16px; bottom: 16px;
        max-width: none;
    }
    .m-logos { gap: 24px; }
    .m-logo { font-size: 13px; }
}

/* ============================================================
   DASHBOARD — все страницы (docs, integrations, status, demo)
   ============================================================ */

body.dash-body {
    font-family: var(--sans);
    background: #0a0a0b;
    color: var(--text);
    letter-spacing: -0.01em;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body.dash-body::before,
body.dash-body::after { display: none; }

/* === Page hero (для docs/integrations/status) === */
.d-page-hero {
    padding: 56px 0 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.d-page-hero::before {
    content: '';
    position: absolute;
    top: -60%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.d-page-hero .container { position: relative; z-index: 1; }

.d-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--amber);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
.d-page-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--amber);
}

.d-page-hero h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 auto 16px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 800px;
}
.d-page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.d-page-hero p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto;
}

/* === Dashboard layout (sidebar + main) === */
.d-docs {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.d-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
    font-size: 14px;
}
.d-sidebar::-webkit-scrollbar { width: 4px; }
.d-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
.d-sidebar-group {
    margin-bottom: 28px;
}
.d-sidebar-group h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    margin: 0 0 12px;
    font-weight: 600;
}
.d-sidebar-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.d-sidebar-group a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.15s;
    font-size: 13.5px;
    border-left: 2px solid transparent;
}
.d-sidebar-group a:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text);
}
.d-sidebar-group a.active {
    color: var(--amber);
    background: rgba(245,166,35,0.06);
    border-left-color: var(--amber);
}

/* === Main content === */
.d-main { min-width: 0; max-width: 780px; }
.d-main h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 48px 0 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text);
}
.d-main h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.d-main h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
    letter-spacing: -0.015em;
    color: var(--text);
}
.d-main p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.d-main ul, .d-main ol {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px 22px;
    padding: 0;
}
.d-main li { margin-bottom: 6px; }
.d-main li code, .d-main p code {
    background: rgba(245,166,35,0.05);
    color: var(--amber);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13px;
    border: 1px solid rgba(245,166,35,0.12);
    font-family: var(--mono);
}
.d-main a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px dashed rgba(245,166,35,0.4);
}
.d-main a:hover { border-bottom-style: solid; }
.d-main strong { color: var(--text); }

/* Code blocks */
.d-main pre {
    background: #06060a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px 22px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: #d4d4d8;
    margin: 16px 0;
    position: relative;
}
.d-main pre code {
    background: none;
    padding: 0;
    border: none;
    color: #d4d4d8;
    font-size: 12.5px;
}
.d-main pre .lang {
    position: absolute;
    top: 10px; right: 14px;
    font-size: 10.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--mono);
}
.d-main pre .copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(245,166,35,0.06);
    border: 1px solid rgba(245,166,35,0.2);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0;
}
.d-main pre:hover .copy-btn { opacity: 1; }
.d-main pre .copy-btn:hover {
    background: var(--amber);
    color: #0a0a0b;
}
.d-main pre .copy-btn.copied {
    background: var(--green);
    color: #0a0a0b;
    border-color: var(--green);
    opacity: 1;
}

/* Method badges */
.d-method {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    letter-spacing: 0.06em;
    margin-right: 10px;
    vertical-align: middle;
}
.d-method-post {
    background: rgba(74,222,128,0.1);
    color: var(--green);
    border: 1px solid rgba(74,222,128,0.3);
}
.d-method-get {
    background: rgba(124,181,255,0.1);
    color: #7cb5ff;
    border: 1px solid rgba(124,181,255,0.3);
}

/* Tables */
.d-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}
.d-main th {
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-mute);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.d-main td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-dim);
    vertical-align: top;
}
.d-main tr:last-child td { border-bottom: none; }

/* Callout */
.d-callout {
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 3px solid var(--amber);
    background: rgba(245,166,35,0.04);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}
.d-callout.warn {
    border-left-color: var(--red);
    background: rgba(248,113,113,0.04);
}
.d-callout.success {
    border-left-color: var(--green);
    background: rgba(74,222,128,0.04);
}
.d-callout strong { color: var(--text); }

/* === Integrations grid === */
.d-integrations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}
.d-int-card {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.d-int-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--amber) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.d-int-card:hover::before { transform: scaleX(1); }
.d-int-card:hover {
    border-color: rgba(245,166,35,0.18);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.d-int-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 700;
    color: var(--amber);
    font-size: 13px;
    margin-bottom: 14px;
}
.d-int-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.d-int-card p {
    font-size: 13.5px;
    color: var(--text-mute);
    margin: 0;
    line-height: 1.5;
}
.d-int-card .d-int-tag {
    display: inline-block;
    font-size: 10.5px;
    font-family: var(--mono);
    color: var(--text-faint);
    background: rgba(255,255,255,0.03);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* === Status page === */
.d-status-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}
.d-status-overall {
    text-align: center;
    padding: 32px 0 40px;
}
.d-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--sans);
    letter-spacing: -0.01em;
    transition: all 0.3s;
}
.d-status-badge.ok {
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    color: #6ee7b7;
    box-shadow: 0 0 60px -20px rgba(74,222,128,0.4);
}
.d-status-badge.bad {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    color: #fca5a5;
    box-shadow: 0 0 60px -20px rgba(248,113,113,0.4);
}
.d-status-badge .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    animation: pulseDot 2s infinite;
}

.d-status-list {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    overflow: hidden;
}
.d-status-row {
    display: grid;
    grid-template-columns: 1fr 110px 110px 140px;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.d-status-row:last-child { border-bottom: none; }
.d-status-row:hover { background: rgba(255,255,255,0.015); }
.d-status-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.d-status-name .d-status-icon {
    font-size: 16px;
    opacity: 0.7;
}
.d-status-stat {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
    text-align: right;
    font-weight: 500;
}
.d-status-stat .lbl {
    display: block;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
    font-family: var(--sans);
    font-weight: 600;
}
.d-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    justify-self: end;
    letter-spacing: -0.005em;
}
.d-status-pill.ok {
    background: rgba(74,222,128,0.1);
    color: var(--green);
}
.d-status-pill.bad {
    background: rgba(248,113,113,0.1);
    color: var(--red);
}
.d-status-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.d-status-meta {
    text-align: center;
    padding: 32px 0;
    font-size: 12.5px;
    color: var(--text-faint);
    font-family: var(--mono);
    letter-spacing: 0.04em;
}

/* === Demo checkout === */
.d-checkout {
    max-width: 560px;
    margin: 48px auto 80px;
    padding: 0 24px;
}
.d-checkout-card {
    background: #141416;
    border: 1px solid rgba(245,166,35,0.15);
    border-radius: 18px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 100px -40px rgba(245,166,35,0.2);
}
.d-checkout-card::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.d-checkout-icon {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(74,222,128,0.08);
    border: 2px solid rgba(74,222,128,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.d-checkout-icon svg {
    width: 34px; height: 34px;
    stroke: var(--green);
    stroke-width: 3;
    fill: none;
}
@keyframes checkIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.d-checkout-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 10px;
}
.d-checkout-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 32px;
}
.d-checkout-amount {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 28px;
}
.d-checkout-amount-value {
    font-family: var(--mono);
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.d-checkout-amount-value .unit {
    font-size: 22px;
    color: var(--text-mute);
    font-weight: 500;
    margin-left: 6px;
}
.d-checkout-amount-label {
    font-size: 11.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-top: 10px;
}
.d-checkout-rows {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}
.d-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.d-checkout-row:last-child { border-bottom: none; }
.d-checkout-row .k {
    color: var(--text-mute);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.d-checkout-row .v {
    font-family: var(--mono);
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
}
.d-checkout-row .v.ok { color: var(--green); }
.d-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.d-checkout-actions .m-btn {
    width: 100%;
    justify-content: center;
}

/* === Responsive === */
@media (max-width: 900px) {
    .d-docs {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px 60px;
    }
    .d-sidebar {
        position: static;
        max-height: none;
        padding: 16px 18px;
        background: #141416;
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 12px;
    }
    .d-page-hero { padding: 40px 0 28px; }
    .d-page-hero h1 { font-size: 32px; }
    .d-page-hero p { font-size: 15px; }
    .d-integrations { grid-template-columns: 1fr; padding: 24px 20px 60px; }
    .d-status-wrap { padding: 24px 20px 60px; }
    .d-status-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 16px 18px;
    }
    .d-status-stat { display: none; }
    .d-checkout { margin: 24px auto 60px; padding: 0 16px; }
    .d-checkout-card { padding: 28px 22px; }
    .d-checkout-amount-value { font-size: 32px; }
    .d-checkout-amount-value .unit { font-size: 18px; }
}
@media (max-width: 500px) {
    .d-page-hero h1 { font-size: 26px; }
    .d-main h2 { font-size: 22px; }
    .d-main pre { font-size: 11.5px; padding: 14px; }
    .d-checkout-title { font-size: 22px; }
    .d-checkout-amount-value { font-size: 28px; }
    .d-integrations { gap: 10px; }
    .d-int-card { padding: 20px; }
}

/* === Reveal === */
.d-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.d-reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SPLIT LAYOUT (вместо плиток) + HAIRLINE LIST
   ============================================================ */

/* === Split: список слева, превью справа === */
.split-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 80px;
    align-items: start;
}

/* === Вертикальный список элементов === */
.split-list {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
}
.split-list::-webkit-scrollbar { width: 3px; }
.split-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}

.split-group {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    font-weight: 600;
    padding: 20px 12px 10px;
}
.split-group:first-child { padding-top: 0; }

.split-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}
.split-item:hover {
    background: rgba(255,255,255,0.03);
}
.split-item.active {
    background: rgba(245,166,35,0.06);
    border-left-color: var(--amber);
}
.split-item.active .split-item-icon {
    background: rgba(245,166,35,0.12);
    border-color: rgba(245,166,35,0.4);
    color: var(--amber);
}
.split-item.active .split-item-name {
    color: var(--text);
}

.split-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-mute);
    letter-spacing: -0.02em;
    transition: all 0.15s;
}
.split-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.split-item-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 3px;
}

/* === Правая часть превью === */
.split-preview {
    min-width: 0;
}
.split-preview-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.split-preview-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--amber);
    flex-shrink: 0;
}
.split-preview-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 4px;
}
.split-preview-desc {
    font-size: 14.5px;
    color: var(--text-dim);
    margin: 0;
}

/* Блоки кода */
.split-code {
    margin-bottom: 28px;
}
.split-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.split-code-label {
    font-size: 12px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}
.split-code pre {
    background: #06060a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px 22px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: #d4d4d8;
    margin: 0;
    position: relative;
}
.split-code pre code {
    background: none;
    padding: 0;
    border: none;
    color: #d4d4d8;
    font-family: var(--mono);
    font-size: 12.5px;
}
.split-code pre .copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(245,166,35,0.06);
    border: 1px solid rgba(245,166,35,0.2);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0;
}
.split-code pre:hover .copy-btn { opacity: 1; }
.split-code pre .copy-btn:hover {
    background: var(--amber);
    color: #0a0a0b;
}
.split-code pre .copy-btn.copied {
    background: var(--green);
    color: #0a0a0b;
    border-color: var(--green);
    opacity: 1;
}

/* Хинты и подсказки */
.split-hint {
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--amber);
    border-radius: 0 10px 10px 0;
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 20px;
}
.split-hint code {
    background: rgba(245,166,35,0.06);
    color: var(--amber);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgba(245,166,35,0.12);
    font-family: var(--mono);
    font-size: 12.5px;
}

.split-links {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}
.split-links a {
    font-size: 13.5px;
    color: var(--amber);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.split-links a:hover {
    gap: 10px;
}

/* Скрытие неактивных превью */
.split-pane {
    display: none;
}
.split-pane.active {
    display: block;
    animation: paneIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes paneIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HAIRLINE FEATURES LIST (замена плиткам на лендинге)
   ============================================================ */

.hl-features {
    max-width: 780px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.hl-feature {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 20px;
    align-items: baseline;
    padding: 26px 8px 26px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.hl-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--amber);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}
.hl-feature:hover::before { width: 24px; }
.hl-feature:hover {
    padding-left: 32px;
    border-bottom-color: rgba(245,166,35,0.2);
}

.hl-feature-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mute);
    letter-spacing: 0.06em;
    padding-top: 2px;
    transition: color 0.2s;
}
.hl-feature:hover .hl-feature-num {
    color: var(--amber);
}

.hl-feature-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
.hl-feature-body p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

.hl-feature-icon {
    font-size: 18px;
    opacity: 0.4;
    padding-top: 2px;
    transition: opacity 0.2s, transform 0.2s;
}
.hl-feature:hover .hl-feature-icon {
    opacity: 1;
    transform: translateX(-2px);
}

/* ============================================================
   STEPS — компактный ряд без плиток
   ============================================================ */

.hl-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hl-step {
    padding: 36px 28px 36px 0;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding-right: 28px;
    margin-right: 28px;
    position: relative;
}
.hl-step:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}
.hl-step-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}
.hl-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.hl-step p {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px 60px;
    }
    .split-list {
        position: static;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        margin-bottom: 8px;
    }
    .split-group { display: none; }
    .split-item {
        grid-template-columns: 28px auto;
        padding: 8px 12px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 8px 8px 0 0;
    }
    .split-item.active {
        border-left: none;
        border-bottom-color: var(--amber);
        background: rgba(245,166,35,0.06);
    }
    .split-item-icon { width: 28px; height: 28px; font-size: 9.5px; }
    .split-item-name { font-size: 13px; }
    .split-item-tag { display: none; }
    .split-preview-head { padding-bottom: 18px; margin-bottom: 20px; }
    .split-preview-icon { width: 44px; height: 44px; font-size: 13px; }
    .split-preview-title { font-size: 20px; }
    .split-code pre { font-size: 11.5px; padding: 16px; }
    .hl-feature {
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding: 20px 0;
    }
    .hl-feature-icon { display: none; }
    .hl-step {
        padding: 24px 0;
        border-right: none;
        margin-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .hl-step:last-child { border-bottom: none; }
    .hl-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   NEW HERO — split + live panel
   ============================================================ */

.h-hero {
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.h-hero::before {
    content: '';
    position: absolute;
    top: -20%; left: 40%;
    transform: translateX(-50%);
    width: 1000px; height: 700px;
    background: radial-gradient(ellipse, rgba(245,166,35,0.09) 0%, transparent 60%);
    pointer-events: none;
}
.h-hero .container { position: relative; z-index: 1; }

.h-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: center;
}

.h-hero-copy { min-width: 0; }

.h-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 12px;
    background: rgba(74,222,128,0.06);
    border: 1px solid rgba(74,222,128,0.22);
    border-radius: 100px;
    font-size: 12.5px;
    color: #6ee7b7;
    font-weight: 500;
    margin-bottom: 26px;
    letter-spacing: -0.005em;
}
.h-hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 2s infinite;
}

.h-hero h1 {
    font-size: clamp(38px, 5.6vw, 68px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 0 22px;
    color: var(--text);
}
.h-hero h1 .h-em {
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 50%, #f5a623 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradient 6s ease-in-out infinite;
    display: inline-block;
}
.h-hero h1 .h-strike {
    position: relative;
    display: inline-block;
    color: var(--text-mute);
}
.h-hero h1 .h-strike::after {
    content: '';
    position: absolute;
    left: -4px; right: -4px;
    top: 50%;
    height: 3px;
    background: var(--red);
    transform: rotate(-3deg);
    border-radius: 2px;
    opacity: 0.7;
}

.h-hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 0 32px;
}

.h-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.h-hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.h-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.h-trust-item::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

/* === Live panel === */
.h-live-panel {
    background: #141416;
    border: 1px solid rgba(245,166,35,0.15);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(245,166,35,0.04),
        0 40px 100px -30px rgba(0,0,0,0.8),
        0 0 200px -60px rgba(245,166,35,0.25);
    position: relative;
    animation: panelFloat 6s ease-in-out infinite;
}
@keyframes panelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.h-live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.015);
}
.h-live-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}
.h-live-head-left::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 1.5s infinite;
}
.h-live-rate {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
}
.h-live-rate .label {
    font-size: 10.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.h-live-rate .value {
    color: var(--amber);
    font-weight: 700;
}

.h-live-balance {
    padding: 26px 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.h-live-balance::before {
    content: '';
    position: absolute;
    top: -60%; right: -20%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.h-live-balance-label {
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 10px;
}
.h-live-balance-value {
    font-family: var(--mono);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.h-live-balance-value .unit {
    font-size: 17px;
    color: var(--text-mute);
    font-weight: 500;
}
.h-live-balance-meta {
    font-size: 12.5px;
    color: var(--green);
    margin-top: 8px;
    font-family: var(--mono);
}

.h-live-tx-head {
    padding: 16px 22px 10px;
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.h-live-tx {
    padding: 0 0 8px;
}
.h-live-tx-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 22px;
    font-size: 13px;
    transition: background 0.15s;
}
.h-live-tx-row:hover { background: rgba(255,255,255,0.015); }
.h-live-tx-row.new {
    animation: txSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes txSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.h-live-tx-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(74,222,128,0.1);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.h-live-tx-icon.out {
    background: rgba(248,113,113,0.1);
    color: var(--red);
}
.h-live-tx-info {
    min-width: 0;
}
.h-live-tx-info strong {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 2px;
}
.h-live-tx-info small {
    color: var(--text-faint);
    font-size: 11px;
    font-family: var(--mono);
}
.h-live-tx-amount {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}
.h-live-tx-amount.out { color: var(--red); }

/* === Marquee-ticker снизу hero === */
.h-marquee {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 18px 0;
    overflow: hidden;
    background: rgba(255,255,255,0.008);
}
.h-marquee-track {
    display: flex;
    gap: 56px;
    animation: marquee 42s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.h-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.h-marquee-item::before {
    content: '◆';
    color: var(--amber);
    font-size: 9px;
}
.h-marquee-item strong {
    color: var(--text);
    font-weight: 600;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }

/* === Responsive === */
@media (max-width: 960px) {
    .h-hero { padding: 40px 0 48px; }
    .h-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .h-hero h1 { font-size: 38px; }
    .h-hero-lead { font-size: 15.5px; }
    .h-live-balance-value { font-size: 34px; }
    .h-live-balance { padding: 22px 18px 18px; }
    .h-live-tx-row { padding: 10px 18px; }
    .h-live-head { padding: 14px 18px; }
    .h-marquee-track { gap: 40px; animation-duration: 30s; }
    .h-marquee-item { font-size: 11.5px; }
}
@media (max-width: 500px) {
    .h-hero h1 { font-size: 32px; }
    .h-hero-badge { font-size: 11.5px; padding: 6px 14px 6px 10px; }
    .h-hero-ctas { flex-direction: column; align-items: stretch; }
    .h-hero-ctas .m-btn { width: 100%; justify-content: center; min-height: 52px; }
    .h-hero-trust { gap: 16px; flex-direction: column; }
    .h-live-balance-value { font-size: 28px; }
    .h-live-balance-value .unit { font-size: 14px; }
}

/* ============================================================
   TESTIMONIALS — лента, не плитки
   ============================================================ */

.tl-strip {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 48px 0;
    overflow: hidden;
    position: relative;
}
.tl-track {
    display: flex;
    gap: 32px;
    animation: marquee 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
    padding: 0 32px;
}
.tl-track:hover { animation-play-state: paused; }

.tl-card {
    flex-shrink: 0;
    width: 380px;
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
    white-space: normal;
    transition: all 0.25s;
}
.tl-card:hover {
    border-color: rgba(245,166,35,0.2);
    transform: translateY(-2px);
}
.tl-text {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 18px;
    position: relative;
    padding-top: 12px;
}
.tl-text::before {
    content: '"';
    position: absolute;
    top: -16px;
    left: -4px;
    color: var(--amber);
    font-size: 38px;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.6;
}
.tl-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.tl-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), #ffb84d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0b;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.tl-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.tl-role {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 2px;
}

/* ============================================================
   FAQ — аккордеон
   ============================================================ */

.acc {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.acc-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
    transition: color 0.2s;
}
.acc-head:hover { color: var(--amber); }
.acc-head h4 {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.015em;
    transition: color 0.2s;
}
.acc-head:hover h4 { color: var(--amber); }
.acc-toggle {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--text-mute);
    transition: transform 0.3s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.acc-item.open .acc-toggle {
    transform: rotate(45deg);
    color: var(--amber);
}
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    padding: 0;
}
.acc-item.open .acc-body {
    max-height: 400px;
    padding-bottom: 24px;
}
.acc-body p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    padding-right: 48px;
}

@media (max-width: 500px) {
    .acc-head h4 { font-size: 15px; }
    .acc-body p { padding-right: 0; font-size: 14px; }
    .tl-card { width: 300px; }
}

/* ============================================================
   BOTTOM SECTION — big stats + testimonials + final CTA
   ============================================================ */

/* === BIG STATS — 4 выразительных карточки === */
.bigstats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
}
.bigstat {
    background: linear-gradient(180deg, #16161a 0%, #121214 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bigstat::before {
    content: '';
    position: absolute;
    top: -60%; right: -30%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.bigstat:hover::before { opacity: 1; }
.bigstat:hover {
    border-color: rgba(245,166,35,0.22);
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -25px rgba(0,0,0,0.7);
}
.bigstat-num {
    font-family: var(--mono);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bigstat-num .accent {
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bigstat-num .unit {
    font-size: 18px;
    color: var(--text-mute);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.bigstat-label {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.bigstat-note {
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .bigstats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bigstat { padding: 24px 22px 22px; }
    .bigstat-num { font-size: 36px; }
}
@media (max-width: 500px) {
    .bigstats { grid-template-columns: 1fr; }
}

/* === TESTIMONIALS — featured + сетка === */
.testi-wrap {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}
.testi-card {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.testi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.testi-card:hover::before { opacity: 0.6; }
.testi-card:hover {
    border-color: rgba(245,166,35,0.18);
    transform: translateY(-2px);
}

.testi-card.featured {
    grid-row: 1 / span 2;
    background: linear-gradient(180deg, #17171a 0%, #121214 100%);
    border-color: rgba(245,166,35,0.15);
    padding: 36px;
}
.testi-card.featured::before { opacity: 0.4; }

.testi-quote {
    font-size: 15px;
    color: var(--text);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 22px;
    position: relative;
    padding-top: 22px;
    letter-spacing: -0.005em;
}
.testi-quote::before {
    content: '"';
    position: absolute;
    top: -6px;
    left: -4px;
    color: var(--amber);
    font-size: 48px;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.55;
}
.testi-card.featured .testi-quote {
    font-size: 19px;
    line-height: 1.55;
    letter-spacing: -0.015em;
    font-weight: 500;
}
.testi-card.featured .testi-quote::before {
    font-size: 62px;
    top: -10px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), #ffb84d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0b;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(245,166,35,0.3);
}
.testi-card.featured .testi-avatar {
    width: 48px; height: 48px;
    font-size: 18px;
}
.testi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.testi-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}
.testi-role {
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 2px;
}

/* Рейтинг звёздами */
.testi-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}
.testi-stars span {
    color: var(--amber);
    font-size: 13px;
    letter-spacing: -1px;
}

@media (max-width: 900px) {
    .testi-wrap {
        grid-template-columns: 1fr 1fr;
    }
    .testi-card.featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
@media (max-width: 600px) {
    .testi-wrap { grid-template-columns: 1fr; gap: 12px; }
    .testi-card { padding: 22px; }
    .testi-card.featured { padding: 26px 22px; }
    .testi-card.featured .testi-quote { font-size: 17px; }
}

/* === FINAL CTA — крупная секция === */
.final-cta {
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse, rgba(245,166,35,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }

.final-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.25);
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--amber);
    font-weight: 500;
    margin-bottom: 24px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.final-cta-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--amber);
}

.final-cta h2 {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 auto 20px;
    max-width: 780px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.final-cta h2 em {
    font-style: normal;
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 50%, #f5a623 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradient 6s ease-in-out infinite;
}

.final-cta p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.55;
}

.final-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.final-cta-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.05);
    max-width: 720px;
    margin: 0 auto;
}
.final-cta-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.final-cta-trust-item::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 700px) {
    .final-cta { padding: 64px 0; }
    .final-cta h2 { font-size: 32px; }
    .final-cta p { font-size: 15px; margin-bottom: 28px; }
    .final-cta-actions { flex-direction: column; align-items: stretch; margin-bottom: 32px; }
    .final-cta-actions .m-btn { width: 100%; justify-content: center; min-height: 52px; }
    .final-cta-trust { gap: 16px; flex-direction: column; align-items: flex-start; }
}

/* === FOOTER UPGRADE — добавим статус-строку === */
.m-footer-bottom {
    padding-top: 24px !important;
    font-size: 12px !important;
}
.m-footer-bottom span:first-child {
    font-family: var(--mono);
    letter-spacing: 0.04em;
}

/* ============================================================
   CLEAN LANDING — минималистичный layout
   ============================================================ */

/* === Compact hero === */
.clean-hero {
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.clean-hero::before {
    content: '';
    position: absolute;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 600px;
    background: radial-gradient(ellipse, rgba(245,166,35,0.1) 0%, transparent 65%);
    pointer-events: none;
}
.clean-hero .container { position: relative; z-index: 1; }

.clean-hero h1 {
    font-size: clamp(42px, 6.2vw, 82px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin: 0 auto 24px;
    max-width: 900px;
    color: var(--text);
}
.clean-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 50%, #f5a623 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradient 6s ease-in-out infinite;
}

.clean-hero-lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 36px;
}

.clean-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.clean-hero-trust {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}
.clean-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mute);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.clean-trust::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

/* === Compact live pill === */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background: rgba(74,222,128,0.06);
    border: 1px solid rgba(74,222,128,0.22);
    border-radius: 100px;
    font-size: 13px;
    color: #6ee7b7;
    font-weight: 500;
    margin-bottom: 26px;
}
.live-pill::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulseDot 2s infinite;
}
.live-pill .pill-sep {
    color: rgba(255,255,255,0.15);
    margin: 0 4px;
}
.live-pill .pill-strong {
    color: var(--text);
    font-family: var(--mono);
    font-weight: 700;
}

/* === Compact stats row === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.stats-cell {
    background: #0e0e10;
    padding: 26px 20px;
    text-align: center;
    transition: background 0.2s;
}
.stats-cell:hover { background: #131316; }
.stats-cell .num {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}
.stats-cell .num .accent {
    color: var(--amber);
}
.stats-cell .lbl {
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}

/* === Compact features — 3 колонки === */
.clean-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 48px;
    max-width: 1000px;
    margin: 0 auto;
}
.cf-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.cf-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(245,166,35,0.06);
    border: 1px solid rgba(245,166,35,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.cf-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.cf-body p {
    font-size: 13.5px;
    color: var(--text-mute);
    line-height: 1.5;
    margin: 0;
}

/* === Compact steps — 3 горизонтально с номерами === */
.clean-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.cs-card {
    padding: 32px 26px;
    background: #101012;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    position: relative;
    transition: all 0.25s;
}
.cs-card:hover {
    border-color: rgba(245,166,35,0.2);
    transform: translateY(-2px);
}
.cs-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--amber);
    margin-bottom: 20px;
    display: block;
}
.cs-card h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.015em;
}
.cs-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

/* === Compact testimonials — 3 карточки в ряд === */
.clean-testi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.ct-card {
    background: #101012;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}
.ct-card:hover {
    border-color: rgba(245,166,35,0.18);
    transform: translateY(-2px);
}
.ct-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}
.ct-stars span {
    color: var(--amber);
    font-size: 12px;
}
.ct-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.ct-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.ct-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), #ffb84d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0b;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.ct-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.ct-role {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 2px;
}

/* === Section wrapper === */
.sec {
    padding: 88px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sec-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.sec-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 0 14px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sec-head p {
    font-size: 16px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.55;
}

/* === Responsive === */
@media (max-width: 900px) {
    .clean-hero { padding: 56px 0 40px; }
    .clean-hero h1 { font-size: 42px; }
    .clean-hero-lead { font-size: 16px; }
    .clean-hero-actions { flex-direction: column; align-items: stretch; }
    .clean-hero-actions .m-btn { width: 100%; justify-content: center; min-height: 52px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stats-cell { padding: 20px 16px; }
    .stats-cell .num { font-size: 24px; }
    .clean-features { grid-template-columns: 1fr; gap: 24px; }
    .clean-steps { grid-template-columns: 1fr; gap: 12px; }
    .clean-testi { grid-template-columns: 1fr; }
    .sec { padding: 56px 0; }
    .sec-head { margin-bottom: 32px; }
    .sec-head h2 { font-size: 28px; }
    .sec-head p { font-size: 15px; }
}
@media (max-width: 500px) {
    .clean-hero h1 { font-size: 34px; }
    .clean-hero-trust { gap: 14px; flex-direction: column; align-items: center; }
    .live-pill { font-size: 11.5px; padding: 7px 12px; }
    .stats-cell .num { font-size: 22px; }
    .cs-card { padding: 26px 22px; }
    .ct-card { padding: 22px; }
}

/* Скрытие старых блоков, если остались */
.m-feature-big, .tl-strip, .m-section.m-cta, .m-logos { display: none !important; }

/* ============================================================
   COMPACT FINAL — плотный layout без дыр
   ============================================================ */

/* Перебиваем отступы секций */
.sec {
    padding: 64px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.sec-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px !important;
}
.sec-head h2 {
    font-size: clamp(26px, 3.4vw, 38px) !important;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 10px !important;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sec-head p {
    font-size: 15px !important;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
}

/* Hero — плотнее */
.clean-hero {
    padding: 64px 0 48px !important;
}
.clean-hero h1 {
    font-size: clamp(38px, 5.4vw, 68px) !important;
    margin-bottom: 18px !important;
}
.clean-hero-lead {
    font-size: 17px !important;
    margin-bottom: 28px !important;
}
.clean-hero-actions {
    margin-bottom: 32px !important;
}

/* Stats row — плотнее */
.stats-row {
    margin: 0 auto;
    max-width: 1000px;
}
.stats-cell {
    padding: 22px 18px !important;
}
.stats-cell .num {
    font-size: 26px !important;
}
.stats-cell .lbl {
    font-size: 11.5px !important;
}

/* Features — плотнее gap */
.clean-features {
    gap: 24px 40px !important;
}

/* Steps — плотнее */
.clean-steps {
    gap: 14px !important;
}
.cs-card {
    padding: 26px 22px !important;
}
.cs-num {
    margin-bottom: 14px !important;
}
.cs-card h4 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
}
.cs-card p {
    font-size: 13.5px !important;
}

/* Testimonials — плотнее */
.clean-testi {
    gap: 14px !important;
}
.ct-card {
    padding: 22px !important;
}
.ct-text {
    font-size: 13.5px !important;
    margin-bottom: 16px !important;
}

/* Calculator — компактнее */
.m-calc-wrap {
    padding: 26px !important;
}

/* FAQ — компактнее */
.acc-head {
    padding: 20px 0 !important;
}
.acc-head h4 {
    font-size: 15.5px !important;
}
.acc-item.open .acc-body {
    padding-bottom: 18px !important;
}
.acc-body p {
    font-size: 14px !important;
}

/* Final CTA — плотнее */
.final-cta {
    padding: 72px 0 !important;
}
.final-cta h2 {
    font-size: clamp(28px, 4vw, 46px) !important;
    margin-bottom: 14px !important;
}
.final-cta p {
    font-size: 16px !important;
    margin-bottom: 28px !important;
}
.final-cta-actions {
    margin-bottom: 32px !important;
}
.final-cta-trust {
    padding-top: 24px !important;
    gap: 24px !important;
}

/* Footer — плотнее */
.m-footer {
    padding: 40px 0 28px !important;
}
.m-footer-grid {
    padding-bottom: 28px !important;
    margin-bottom: 22px !important;
    gap: 32px !important;
}

/* === Logos cloud === */
.logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 36px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
.logos-row .lg {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mute);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
.logos-row .lg:hover { color: var(--amber); }

/* === Marquee под hero — компактнее === */
.h-marquee {
    padding: 14px 0 !important;
}
.h-marquee-item {
    font-size: 12px !important;
}

/* === Live-panel hero — компактнее === */
.h-live-panel {
    padding: 0 !important;
}
.h-live-head {
    padding: 12px 18px !important;
    font-size: 11.5px !important;
}
.h-live-balance {
    padding: 20px 18px 16px !important;
}
.h-live-balance-value {
    font-size: 32px !important;
}
.h-live-balance-value .unit {
    font-size: 14px !important;
}
.h-live-tx-head {
    padding: 12px 18px 8px !important;
    font-size: 10.5px !important;
}
.h-live-tx-row {
    padding: 9px 18px !important;
    grid-template-columns: 28px 1fr auto !important;
    gap: 10px !important;
}
.h-live-tx-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
}
.h-live-tx-info strong {
    font-size: 12.5px !important;
}
.h-live-tx-info small {
    font-size: 10.5px !important;
}
.h-live-tx-amount {
    font-size: 12.5px !important;
}

/* Hero grid — плотнее */
.h-hero-grid {
    gap: 48px !important;
}

/* Trust-строки в hero */
.h-hero-trust {
    gap: 22px !important;
    padding-top: 20px !important;
}

/* Мобильная плотность */
@media (max-width: 900px) {
    .sec { padding: 44px 0 !important; }
    .sec-head { margin-bottom: 28px !important; }
    .sec-head h2 { font-size: 24px !important; }
    .clean-hero { padding: 40px 0 32px !important; }
    .clean-hero h1 { font-size: 36px !important; }
    .stats-cell { padding: 18px 14px !important; }
    .stats-cell .num { font-size: 22px !important; }
    .cs-card { padding: 22px 18px !important; }
    .ct-card { padding: 20px !important; }
    .final-cta { padding: 52px 0 !important; }
    .logos-row { gap: 20px !important; }
    .logos-row .lg { font-size: 12.5px !important; }
}
@media (max-width: 500px) {
    .sec { padding: 36px 0 !important; }
    .clean-hero h1 { font-size: 30px !important; }
    .stats-cell .num { font-size: 20px !important; }
    .stats-cell .lbl { font-size: 10.5px !important; }
}
