@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap&subset=cyrillic,cyrillic-ext,latin,latin-ext');

:root {
    --onyx-center: #4d5254;
    --onyx-edge: #313638;
    --onyx-pattern: #000000;
    --onyx-text: #a9abad;

    --fg: #d8d9da;
    --fg-strong: #f2f3f4;
    --fg-muted: #7c7e80;
    --border: rgba(169, 171, 173, 0.14);
    --border-strong: rgba(169, 171, 173, 0.28);
    --chip-bg: rgba(0, 0, 0, 0.35);

    --max-width: 720px;
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--onyx-edge);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--onyx-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    font-feature-settings: 'cv11', 'ss01', 'ss03', 'cv04', 'tnum';
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(77, 82, 84, 0.65) 0%, transparent 60%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 0, 0, 0.45) 0%, transparent 60%),
        var(--onyx-edge);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.18) 1px, transparent 0);
    background-size: 22px 22px;
    mix-blend-mode: multiply;
    opacity: 0.55;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 88px 32px 120px;
}

/* Brand header */
header.brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 72px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

header.brand a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--fg-strong);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

header.brand a::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--onyx-center) 0%, var(--onyx-pattern) 100%);
    box-shadow: 0 0 0 1px var(--border-strong), 0 0 12px rgba(0, 0, 0, 0.5);
}

header.brand .meta {
    color: var(--fg-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* Title block */
h1 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 10px;
    font-weight: 700;
    color: var(--fg-strong);
    background: linear-gradient(180deg, #f2f3f4 0%, #b8babc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 + .subtitle {
    color: var(--fg-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 64px;
}

h2 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.018em;
    margin: 56px 0 14px;
    font-weight: 600;
    color: var(--fg-strong);
}

h3 {
    font-size: 16px;
    margin: 32px 0 10px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}

/* Body copy */
p, ul, ol {
    margin: 0 0 16px;
    color: var(--onyx-text);
}

p b, li b, strong {
    color: var(--fg-strong);
    font-weight: 600;
}

ul, ol {
    padding-left: 0;
    list-style: none;
}

ul li, ol li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.68em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fg-muted);
}

ol {
    counter-reset: item;
}

ol li {
    counter-increment: item;
}

ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 14px;
}

/* Links */
a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    transition: color 120ms ease, border-color 120ms ease;
    padding-bottom: 1px;
}

a:hover {
    color: var(--fg-strong);
    border-bottom-color: var(--fg-strong);
}

/* Code */
code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    font-weight: 500;
    background: var(--chip-bg);
    color: var(--fg);
    padding: 2px 7px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    letter-spacing: 0;
}

/* Divider */
hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 64px 0;
}

/* Footer */
footer {
    margin-top: 88px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--fg-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer a {
    color: var(--fg-muted);
    border-bottom-color: transparent;
}

footer a:hover {
    color: var(--fg);
    border-bottom-color: var(--border-strong);
}

/* Selection */
::selection {
    background: rgba(169, 171, 173, 0.28);
    color: var(--fg-strong);
}

/* Landing */
body.landing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    position: relative;
    z-index: 1;
    max-width: 540px;
    padding: 64px 32px;
    text-align: center;
}

.hero .mark {
    display: block;
    width: 72px;
    height: auto;
    margin: 0 auto 36px;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}

.hero .brandname {
    font-size: 44px;
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 20px;
    background: linear-gradient(180deg, #f2f3f4 0%, #a9abad 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    color: var(--onyx-text);
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 44px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hero .tagline span {
    color: var(--fg-strong);
    font-weight: 500;
}

.hero .cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4f5f6 0%, #d8d9da 100%);
    color: #14130f;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    border: 0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 18px 32px rgba(0, 0, 0, 0.4);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero .cta:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 22px 40px rgba(0, 0, 0, 0.5);
}

.hero .cta svg {
    opacity: 0.72;
    transition: transform 160ms ease;
}

.hero .cta:hover svg {
    transform: translateX(2px);
    opacity: 1;
}

.hero .legal {
    margin-top: 72px;
    font-size: 13px;
    color: var(--fg-muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero .legal a {
    color: var(--fg-muted);
    border-bottom-color: transparent;
}

.hero .legal a:hover {
    color: var(--fg);
    border-bottom-color: var(--border-strong);
}

.hero .legal .dot {
    opacity: 0.5;
}

@media (max-width: 560px) {
    .hero { padding: 48px 24px; }
    .hero .brandname { font-size: 34px; }
    .hero .tagline { font-size: 15px; margin-bottom: 36px; }
    .hero .legal { margin-top: 56px; flex-wrap: wrap; justify-content: center; }
}

/* Responsive */
@media (max-width: 560px) {
    .wrap { padding: 56px 22px 72px; }
    h1 { font-size: 30px; }
    h2 { font-size: 19px; margin: 44px 0 10px; }
    header.brand { margin-bottom: 52px; }
    h1 + .subtitle { margin-bottom: 44px; }
    body::before { background-size: 18px 18px; opacity: 0.4; }
}
