:root {
    --bg: #07090c;
    --bg-elevated: #0d1218;
    --bg-alt: #0a1016;
    --line: rgba(214, 232, 245, 0.1);
    --line-strong: rgba(214, 232, 245, 0.18);
    --text: #e8eef5;
    --muted: #8b9aab;
    --dim: #5f6f80;
    --accent: #3dffa8;
    --accent-2: #7eb6ff;
    --accent-dim: rgba(61, 255, 168, 0.14);
    --danger: #ff6b7a;
    --ok: #3dffa8;
    --radius: 2px;
    --font: "Outfit", system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(126, 182, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 182, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}

.topbar,
main,
.footer {
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    backdrop-filter: blur(16px);
    background: rgba(7, 9, 12, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.topbar.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 9, 12, 0.9);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.logo-mark {
    width: 0.7rem;
    height: 0.7rem;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(61, 255, 168, 0.55);
    animation: pulse-mark 2.8s var(--ease) infinite;
}

@keyframes pulse-mark {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.7; }
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav a {
    font-size: 0.88rem;
    color: var(--muted);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--line-strong);
    color: var(--text) !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 24px rgba(61, 255, 168, 0.12);
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 1px;
    margin: 0.28rem auto;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: min(100vh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 12vh, 7rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
    max-width: var(--max);
    margin: 0 auto;
}

.hero-product {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    inset: 8% auto auto 55%;
    width: min(48vw, 520px);
    height: min(48vw, 520px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, rgba(61, 255, 168, 0.22), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(126, 182, 255, 0.18), transparent 50%);
    filter: blur(8px);
    animation: drift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes drift {
    from { transform: translate(-8%, -4%) scale(1); }
    to { transform: translate(6%, 8%) scale(1.08); }
}

.hero-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(61, 255, 168, 0.03) 48%,
        transparent 52%,
        transparent 100%
    );
    background-size: 100% 220%;
    animation: scan 7s linear infinite;
    opacity: 0.7;
}

@keyframes scan {
    from { background-position: 0 -40%; }
    to { background-position: 0 140%; }
}

.hero-brand {
    margin: 0 0 1.25rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    margin: 0;
    max-width: 14ch;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: #c9d7e6;
    background: linear-gradient(120deg, var(--text), var(--accent-2) 45%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin: 1.6rem 0 0;
    max-width: 38rem;
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: var(--muted);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #04110b;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(61, 255, 168, 0.25), 0 12px 40px rgba(61, 255, 168, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(61, 255, 168, 0.4), 0 16px 48px rgba(61, 255, 168, 0.28);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent-2);
    background: rgba(126, 182, 255, 0.06);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 3.5rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    max-width: 42rem;
}

.hero-metrics dt {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}

.hero-metrics dd {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--text);
}

.section {
    padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(13, 18, 24, 0.2), rgba(13, 18, 24, 0.85)),
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(126, 182, 255, 0.07), transparent 55%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.strip {
    border-top: 1px solid var(--line);
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-title .muted,
.muted {
    color: var(--muted);
}

.section-lead {
    margin: 1.15rem 0 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 300;
}

.product-blocks {
    margin-top: 2.75rem;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 8vh, 5rem);
}

.product-block {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
}

.product-block.reverse {
    grid-template-columns: 1.05fr 1fr;
}

.product-block.reverse .product-meta {
    order: 2;
}

.product-block.reverse .product-visual {
    order: 1;
}

.product-index {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
}

.product-meta h3 {
    margin: 0.55rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.product-tag {
    margin: 0.4rem 0 0.95rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--accent-2);
}

.product-meta > p {
    margin: 0;
    color: var(--muted);
}

.product-meta ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.product-meta li {
    position: relative;
    padding-left: 0.9rem;
    font-size: 0.9rem;
    color: var(--text);
}

.product-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    background: var(--accent);
}

.text-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.text-link:hover {
    color: #9affd2;
}

/* UI mock frames */
.ui-frame {
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 40%),
        #0b1016;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.ui-frame-hero {
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transform-origin: left center;
}

.ui-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.ui-chrome span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #3a4553;
}

.ui-chrome span:nth-child(1) { background: #ff6b7a; }
.ui-chrome span:nth-child(2) { background: #ffc857; }
.ui-chrome span:nth-child(3) { background: #3dffa8; }

.ui-chrome em {
    margin-left: 0.55rem;
    font-style: normal;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--dim);
}

.ui-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    padding: 1rem 1rem 0.4rem;
}

.kpi {
    padding: 0.7rem 0.65rem;
    border: 1px solid var(--line);
    background: rgba(61, 255, 168, 0.04);
}

.kpi b {
    display: block;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.kpi span {
    font-size: 0.68rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ui-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 7.5rem;
    padding: 0.8rem 1rem 0.4rem;
}

.ui-chart .bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, rgba(126, 182, 255, 0.75), rgba(126, 182, 255, 0.15));
    animation: bar-rise 1.4s var(--ease) both;
}

.ui-chart .bar.is-accent {
    background: linear-gradient(180deg, rgba(61, 255, 168, 0.95), rgba(61, 255, 168, 0.2));
}

@keyframes bar-rise {
    from { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.4; }
    to { transform: scaleY(1); opacity: 1; }
}

.ui-pipeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 1rem 1rem;
}

.pip {
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid var(--line);
}

.pip-new { color: #c9d7e6; }
.pip-warn { color: #ffc857; border-color: rgba(255, 200, 87, 0.35); }
.pip-ok { color: var(--accent); border-color: rgba(61, 255, 168, 0.35); }
.pip-hot { color: #ff8f6b; border-color: rgba(255, 143, 107, 0.4); }

.kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    padding: 1rem;
    min-height: 14rem;
}

.kanban .col {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    padding: 0.55rem;
}

.kanban header {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.55rem;
}

.card-mini {
    padding: 0.55rem 0.5rem;
    margin-bottom: 0.4rem;
    border: 1px solid var(--line);
    background: #0f1520;
}

.card-mini b {
    display: block;
    font-size: 0.82rem;
}

.card-mini i {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--muted);
}

.card-mini.warn { border-color: rgba(255, 200, 87, 0.4); }
.card-mini.ok { border-color: rgba(61, 255, 168, 0.35); }

.theme-museum .ui-chrome em { color: #9ec5ff; }
.theme-bitrix .ui-chrome em { color: #9affd2; }
.theme-community .ui-chrome em { color: #ffd59a; }

.museum-layout {
    padding: 1rem;
}

.slot-row {
    display: grid;
    grid-template-columns: 3.2rem 1fr 3.5rem;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.65rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.slot-row .fill {
    height: 0.55rem;
    background: rgba(126, 182, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.slot-row .fill::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w);
    background: linear-gradient(90deg, #7eb6ff, #3dffa8);
}

.slot-row .fill.is-hot::after {
    background: linear-gradient(90deg, #ff8f6b, #ffc857);
}

.finance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.finance-row div {
    padding: 0.55rem;
    border: 1px solid var(--line);
}

.finance-row b {
    display: block;
    font-size: 0.95rem;
}

.finance-row span {
    font-size: 0.68rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tg-mock {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 14rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(61, 255, 168, 0.08), transparent 40%),
        #0a0f14;
}

.tg-bubble {
    max-width: 92%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(61, 255, 168, 0.25);
    background: rgba(61, 255, 168, 0.07);
    border-radius: 0 12px 12px 12px;
}

.tg-bubble.soft {
    align-self: flex-start;
    border-color: rgba(126, 182, 255, 0.3);
    background: rgba(126, 182, 255, 0.08);
}

.tg-bubble strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

.tg-bubble p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

.poll-mock {
    padding: 1.1rem;
    min-height: 14rem;
}

.poll-q {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.poll-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.poll-bar > span {
    display: block;
    height: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.poll-bar > span::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w);
    background: var(--accent);
}

.poll-bar.against > span::after { background: #ff6b7a; }
.poll-bar.mute > span::after { background: #5f6f80; }

.poll-meta {
    margin: 1rem 0 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--dim);
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2.5rem;
    background: var(--line);
    border: 1px solid var(--line);
}

.comp {
    padding: 1.5rem 1.35rem;
    background: var(--bg-alt);
    min-height: 11rem;
}

.comp h3 {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.comp p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: 2.5rem;
}

.case {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-strong);
}

.case-org {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.case h3 {
    margin: 0.7rem 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.case p {
    margin: 0;
    color: var(--muted);
}

.engage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.engage {
    padding: 1.35rem 1.15rem;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(61, 255, 168, 0.05), transparent 45%);
    min-height: 12rem;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.engage:hover {
    border-color: rgba(61, 255, 168, 0.35);
    transform: translateY(-3px);
}

.engage-num {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.engage h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.engage p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.lead-section {
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(61, 255, 168, 0.1), transparent 55%),
        var(--bg);
    border-top: 1px solid var(--line);
}

.lead-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.lead-points {
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.lead-points li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.1rem;
    color: var(--muted);
}

.lead-points li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.lead-form {
    padding: clamp(1.35rem, 3vw, 1.85rem);
    border: 1px solid var(--line-strong);
    background: rgba(13, 18, 24, 0.9);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.field {
    margin-bottom: 1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 12, 0.85);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(61, 255, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(61, 255, 168, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 7rem;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form-status {
    min-height: 1.4rem;
    margin: 0.85rem 0 0;
    font-size: 0.92rem;
}

.form-status.is-ok {
    color: var(--ok);
}

.form-status.is-err {
    color: var(--danger);
}

.form-legal {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: var(--dim);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
    color: var(--dim);
    font-size: 0.88rem;
}

.footer-inner strong {
    color: var(--text);
    margin-right: 0.65rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 960px) {
    .hero-product,
    .product-block,
    .product-block.reverse,
    .lead-layout,
    .engage-grid {
        grid-template-columns: 1fr;
    }

    .product-block.reverse .product-meta,
    .product-block.reverse .product-visual {
        order: initial;
    }

    .ui-frame-hero {
        transform: none;
    }

    .comp-grid,
    .cases {
        grid-template-columns: 1fr 1fr;
    }

    .ui-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kanban {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .nav {
        position: fixed;
        inset: 3.6rem 1rem auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        background: rgba(10, 14, 20, 0.98);
        border: 1px solid var(--line-strong);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--line);
    }

    .nav a:last-child {
        border-bottom: 0;
    }

    .nav-toggle {
        display: inline-block;
    }

    .hero-metrics,
    .comp-grid,
    .cases,
    .field-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 5.5rem;
    }
}
