/* ArgusCortex — shared styles
   System-font, dependency-free, dark intelligence-platform aesthetic. */

:root {
    --bg-0: #0B0E13;
    --bg-1: #141A23;
    --bg-2: #1D2530;
    --line: #28303B;
    --line-soft: #20272F;
    --text-0: #ECEFF4;
    --text-1: #B6BECB;
    --text-2: #8A93A3;
    --accent: #E6A532;
    --accent-bright: #F2BC51;
    --accent-soft: #F0C778;
    --on-accent: #0B0E13;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --shell: 1120px;
}

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

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

body {
    font-family: var(--sans);
    line-height: 1.65;
    color: var(--text-0);
    background: var(--bg-0);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: 12px;
    top: -56px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}

.section {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.section.tight { padding: 64px 0; }

/* ---------- Topbar ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 19, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
    color: var(--text-0);
}
.brand-mark img { height: 30px; width: 30px; }
.brand-mark .wordmark {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand-mark .wordmark b { color: var(--accent); font-weight: 700; }

.topbar nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-size: 0.9rem;
}
.topbar nav a {
    color: var(--text-1);
    text-decoration: none;
    transition: color 0.16s ease;
    white-space: nowrap;
}
.topbar nav a:hover { color: var(--text-0); }
.topbar nav a.active { color: var(--accent-soft); }

.cta-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-0);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.16s ease, background 0.16s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.cta-telegram:hover { border-color: var(--accent); background: rgba(230, 165, 50, 0.08); }
.cta-telegram svg { stroke: currentColor; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent);
    color: var(--on-accent);
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.16s ease, transform 0.16s ease;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn::after { content: "\2192"; transition: transform 0.16s ease; }
.btn:hover::after { transform: translateX(2px); }
.btn-ghost {
    background: transparent;
    color: var(--text-0);
    border: 1px solid var(--line);
}
.btn-ghost::after { content: none; }
.btn-ghost:hover { background: rgba(230, 165, 50, 0.08); border-color: var(--accent); transform: translateY(-1px); }

/* ---------- Hero (landing) ---------- */
.hero {
    padding: 116px 0 84px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 42%;
    left: 50%;
    width: 820px;
    height: 560px;
    max-width: 120vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(230, 165, 50, 0.12), transparent 62%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 auto 22px;
    max-width: 14ch;
}
.hero .lede {
    font-size: 1.18rem;
    color: var(--text-1);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Page hero (product) ---------- */
.page-hero { padding: 76px 0 56px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.8rem; color: var(--text-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-1); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-2); }
.page-hero .eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 16px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 20px;
    max-width: 18ch;
}
.page-hero h1 em { font-style: normal; color: var(--accent-soft); }
.page-hero .lede { font-size: 1.15rem; color: var(--text-1); max-width: 60ch; margin-bottom: 28px; }
.hero-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Product grid (landing) ---------- */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 14px;
}
.section-sub { color: var(--text-1); font-size: 1.02rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
a.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-card .tag {
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 14px;
}
.product-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.product-card p { color: var(--text-1); font-size: 0.96rem; flex-grow: 1; }
.product-card .more {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--accent-soft);
    font-weight: 600;
}
.product-card .lead { margin-bottom: 4px; }
.product-card ul { margin: 14px 0 0 18px; }
.product-card li {
    color: var(--text-1);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 6px;
}
.product-card li:last-child { margin-bottom: 0; }
.product-card li::marker { color: var(--accent-soft); }
.product-card.placeholder { background: transparent; border-style: dashed; }
.product-card.placeholder .more { color: var(--text-2); }

/* ---------- Article (product body) ---------- */
.article { max-width: 920px; margin: 0 auto; }
.article h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 48px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    line-height: 1.2;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.12rem; font-weight: 600; margin: 30px 0 10px; }
.article p { font-size: 1.05rem; color: var(--text-1); line-height: 1.78; margin-bottom: 16px; }
.article p strong, .article li strong { color: var(--text-0); font-weight: 600; }
.article ul, .article ol { margin: 8px 0 22px 22px; }
.article li { font-size: 1.05rem; color: var(--text-1); line-height: 1.7; margin-bottom: 8px; }
.article li::marker { color: var(--accent-soft); }

/* table */
.table-wrap { overflow-x: auto; margin: 22px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.article th, .article td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.article thead th {
    color: var(--text-0);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-bottom-color: var(--accent);
    background: var(--bg-1);
}
.article tbody td { color: var(--text-1); }
.article tbody td strong { color: var(--text-0); }

/* steps */
.steps { counter-reset: step; margin: 32px 0 8px; }
.step {
    position: relative;
    padding: 22px 26px 22px 76px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 26px;
    top: 22px;
    font-family: var(--mono);
    font-size: 1.4rem;
    color: var(--accent-soft);
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 0.98rem; color: var(--text-1); margin-bottom: 0; }

/* ---------- Contact strip ---------- */
.cta-strip {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 52px);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}
.cta-strip h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}
.cta-strip p { color: var(--text-1); font-size: 0.98rem; }
.cta-channels { display: flex; flex-direction: column; gap: 10px; }
.cta-channels a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-0);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-0);
    transition: border-color 0.16s ease, background 0.16s ease;
}
.cta-channels a::after { content: "\2197"; color: var(--text-2); }
.cta-channels a:hover { border-color: var(--accent); background: rgba(230, 165, 50, 0.06); }

/* ---------- Footer ---------- */
.footer {
    padding: 56px 0 36px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    font-size: 0.9rem;
}
.footer .brand-mark { margin-bottom: 14px; }
.footer .col p { color: var(--text-2); max-width: 42ch; }
.footer .col h2 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-1);
    margin-bottom: 14px;
}
.footer .col a {
    display: block;
    color: var(--text-1);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.16s ease;
}
.footer .col a:hover { color: var(--accent-soft); }
.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding: 22px 0 8px;
    text-align: center;
    color: var(--text-2);
    font-size: 0.82rem;
}

/* ---------- Focus states ---------- */
:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .topbar nav { display: none; }
    .cta-strip { grid-template-columns: 1fr; }
    .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .section { padding: 60px 0; }
    .hero { padding: 84px 0 60px; }
    .footer { grid-template-columns: 1fr; }
    .step { padding-left: 26px; padding-top: 56px; }
    .step::before { top: 22px; }
}

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