/* ============================================================
   We the North Market — Northern Lights Dark UI
   ============================================================ */

:root {
    --bg: #060b14;
    --bg-elev: #0b1121;
    --bg-card: #0f172a;
    --border: #1e293b;
    --border-strong: #334155;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-mute: #64748b;
    --accent: #38bdf8;           /* ярко-голубой */
    --accent-dim: #0284c7;
    --accent-glow: rgba(56,189,248,0.4);
    --ok: #34d399;
    --ok-dim: #065f46;
    --radius: 6px;
    --radius-lg: 10px;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.08), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: #7dd3fc; text-shadow: 0 0 8px rgba(56,189,248,0.4); }

img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* header — стеклянная полоса */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(6,11,20,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(56,189,248,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
    font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text);
    letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    border: none;
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    padding: 8px 16px; color: var(--text-dim); font-size: 14px; border: none;
    border-radius: var(--radius); transition: background .2s, color .2s, box-shadow .2s;
}
.nav-links a:hover { color: #fff; background: rgba(56,189,248,0.1); box-shadow: 0 0 10px rgba(56,189,248,0.2); }
.nav-links a.active { color: #fff; background: rgba(56,189,248,0.15); font-weight: 600; }

/* hero — с градиентом и неоном */
.hero {
    padding: 100px 0 80px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(56,189,248,0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.12), transparent 60%);
}
.hero-eyebrow {
    display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .15em;
    color: var(--accent); text-transform: uppercase; padding: 4px 10px;
    border: 1px solid rgba(56,189,248,0.4); border-radius: 999px; margin-bottom: 24px;
    background: rgba(56,189,248,0.08);
}
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 600; max-width: 780px; }
.hero h1 .accent { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 620px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* buttons — с градиентом и свечением */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
    font-family: var(--sans); font-size: 14px; font-weight: 500; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer; transition: all .2s ease; text-decoration: none; letter-spacing: .01em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff; border: none; box-shadow: 0 4px 16px rgba(56,189,248,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(56,189,248,0.6); transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--text); border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(56,189,248,0.08); border-color: var(--accent); color: #fff; }
.btn .arrow { font-family: var(--mono); transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* sections */
section { padding: 80px 0; border-bottom: 1px solid var(--border); position: relative; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: 36px; letter-spacing: -0.015em; margin: 0 0 12px; font-weight: 600; }
.section-head p { color: var(--text-dim); font-size: 16px; margin: 0; }

/* link cards — стеклянный эффект */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-card {
    background: rgba(15,23,42,0.7); backdrop-filter: blur(4px);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; display: flex; flex-direction: column; gap: 14px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    text-decoration: none; color: var(--text);
}
.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(56,189,248,0.12), 0 0 0 1px var(--accent) inset;
}
.link-card-head { display: flex; align-items: center; justify-content: space-between; }
.link-card h3 { margin: 0; font-size: 17px; font-weight: 600; font-family: var(--mono); color: #f1f5f9; }
.link-card .url {
    font-family: var(--mono); font-size: 13px; color: var(--text-mute); word-break: break-all;
    background: rgba(0,0,0,0.3); padding: 8px; border-radius: var(--radius);
}
.link-card .meta {
    display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute);
    font-family: var(--mono); padding-top: 12px; border-top: 1px solid var(--border);
}
.status {
    display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px;
    border-radius: 999px; border: 1px solid;
}
.status .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status.ok { color: var(--ok); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.1); }
.status.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
    background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px;
    transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(56,189,248,0.1); }
.feature .icon {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 700;
    border-radius: var(--radius); margin-bottom: 18px; font-size: 16px; box-shadow: 0 0 12px var(--accent-glow);
}
.feature h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.feature p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
    background: rgba(15,23,42,0.6); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; display: flex; flex-direction: column; gap: 18px;
}
.review .stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.review .text { color: var(--text); font-size: 14.5px; font-style: italic; line-height: 1.65; margin: 0; flex: 1; }
.review .author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.review .avatar {
    width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px;
}
.review .name { font-size: 14px; font-weight: 500; }
.review .handle { font-family: var(--mono); font-size: 12px; color: var(--text-mute); }

/* steps */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.flow-step {
    background: rgba(15,23,42,0.6); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
}
.flow-num {
    font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 700; display: block; margin-bottom: 14px;
}
.flow-step h4 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.flow-step p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: rgba(15,23,42,0.6); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
}
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 16px; color: var(--text); }
.faq-item .answer { margin-top: 12px; color: var(--text-dim); font-size: 14px; }

/* about / text */
.content-text { max-width: 800px; }
.content-text h2 { font-size: 32px; margin-bottom: 16px; }
.content-text h3 { font-size: 24px; margin: 32px 0 12px; color: var(--accent); }
.content-text p { color: var(--text-dim); margin-bottom: 16px; }

/* footer */
.site-footer { padding: 48px 0 32px; background: var(--bg-elev); border-top: 1px solid var(--border); color: var(--text-mute); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-row .legal { font-family: var(--mono); }

/* breadcrumbs */
.breadcrumbs { font-family: var(--mono); font-size: 13px; color: var(--text-mute); margin-bottom: 32px; }
.breadcrumbs a { color: var(--text-dim); border-bottom: none; }
.breadcrumbs a:hover { color: var(--accent); }

@media (max-width: 860px) {
    .hero h1 { font-size: 40px; }
    .hero { padding: 64px 0 56px; }
    section { padding: 56px 0; }
    .link-grid, .feature-grid, .reviews, .flow-steps { grid-template-columns: 1fr; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 8px 10px; font-size: 13px; }
    .section-head h2 { font-size: 28px; }
}

.changelog { margin-top: 1rem; }
.changelog-entry { margin-bottom: 0.75rem; padding-left: 0.5rem; border-left: 2px solid var(--accent); }
.changelog-entry .date { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.changelog-entry .desc { color: var(--text-dim); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.stat-label { font-size: 0.8rem; color: var(--text-mute); margin-top: 0.25rem; }