/* ============================================================
   Zerno — front page
   Split-hero + bento, поток "ядро → модули", dives, creed band.
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 84px 0 96px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero-copy h1 { margin-bottom: 20px; }

.hero-copy .lede { font-size: 1.16rem; margin-bottom: 30px; max-width: 520px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* Поле-мотив: ряды точек за bento */
.hero-visual { position: relative; }

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -34px -30px;
    background-image: radial-gradient(rgba(14, 124, 79, .16) 1.6px, transparent 1.6px);
    background-size: 22px 22px;
    border-radius: 32px;
    pointer-events: none;
}

/* ---------- Bento ---------- */

.bento {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.tile-tag {
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.tile-note { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tile-title { font-family: var(--font-display); font-size: .95rem; color: var(--ink); }

.tile-rows { display: flex; flex-direction: column; }

.trow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-size: .82rem;
    min-width: 0;
}

.trow:last-child { border-bottom: 0; }

.trow span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Deal-строки (CRM tile) */
.deal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.deal:last-child { border-bottom: 0; padding-bottom: 0; }

.deal-ava {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.deal-ava.alt { background: var(--wheat-soft); color: var(--wheat-2); }

.deal-txt { display: flex; flex-direction: column; min-width: 0; }
.deal-txt b { font-size: .84rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-txt small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.deal-sum { margin-left: auto; font-size: .84rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; flex: none; }

/* Analytics tile: bars компактнее */
.tile-analytics .bars { height: 64px; margin-top: 6px; }

/* Широкая нижняя плитка — тёмная, "одно ядро" */
.tile-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: var(--deep);
    border-color: var(--deep);
    color: var(--deep-ink);
    padding: 14px 18px;
}

.tile-wide .tile-tag { color: var(--wheat); flex: none; }

.core-line { font-size: .82rem; color: var(--deep-muted); min-width: 0; }

.tile-wide .spark { width: 120px; height: 30px; color: var(--wheat); flex: none; }

/* ---------- Problem cards ---------- */

.problem-card h3 { margin: 16px 0 8px; }
.problem-card p { font-size: .95rem; margin: 0; }

/* ---------- Flow: ядро → шаги ---------- */

.flow {
    display: grid;
    grid-template-columns: .9fr 1.4fr;
    gap: 24px;
    align-items: stretch;
}

.flow > * { min-width: 0; }

.flow-core {
    background: var(--deep);
    color: var(--deep-ink);
    border-radius: var(--radius-l);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.flow-core svg { color: #fff; }

.flow-core strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #fff;
}

.flow-core p { font-size: .95rem; color: var(--deep-muted); margin: 0; }

.flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-steps li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 18px 22px;
}

.flow-steps .step-num { margin-top: 2px; flex: none; }

.flow-steps strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }
.flow-steps p { font-size: .92rem; margin: 0; }

/* ---------- Module cards ---------- */

.module-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; }

.module-card h3 { margin: 18px 0 8px; font-size: 1.3rem; }
.module-card p { font-size: .95rem; flex: 1; }
.module-card .btn-line { margin-top: 16px; }

/* ---------- Dives ---------- */

.dives .dive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 52px 0;
}

.dives .dive > * { min-width: 0; }

.dives .dive + .dive { border-top: 1px solid var(--line); }

.dive-flip .dive-copy { order: 2; }
.dive-flip .dive-visual { order: 1; }

.dive-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.dive-copy p { color: var(--text); }
.dive-copy .check-list { margin-top: 18px; }

.mock {
    background: var(--panel);
    border-radius: var(--radius-l);
    padding: 24px;
}

.mock-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.mock .lrow { border-bottom-color: var(--line); }
.mock .kpi { background: #fff; }

/* ---------- Creed band ---------- */

.creed { padding: 56px 0; }

.creed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.creed-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.creed-item b {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--wheat);
    line-height: 1;
}

.creed-item span { font-size: .92rem; color: var(--deep-muted); }

/* ---------- Early access cards ---------- */

.ea-card h3 { margin: 12px 0 8px; }
.ea-card p { font-size: .95rem; margin: 0; }

/* ---------- Breakpoints ---------- */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy .lede { max-width: 640px; }
    .flow { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .dives .dive { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
    .dive-flip .dive-copy { order: 1; }
    .dive-flip .dive-visual { order: 2; }
    .creed-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .hero { padding: 56px 0 64px; }
    .bento { grid-template-columns: 1fr; }
    .tile-wide { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tile-wide .spark { width: 100%; }
    .creed-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .creed-item b { font-size: 2.1rem; }
}
