:root {
    --bg: #11161c;
    --bg-soft: #151c23;
    --bg-elevated: #1a222b;
    --border: #2a3540;

    --text: #dce5ee;
    --text-muted: #7e8b98;
    --text-dim: #5a6673;

    --accent: #35e27a;
    --accent-soft: rgba(53, 226, 122, .12);
    --accent-blue: #7eb8ff;

    --red: #ef5350;
    --green: #35e27a;

    --radius: 10px;
    --radius-lg: 16px;

    --transition: 250ms cubic-bezier(.4, 0, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #5aff9b;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 22, 28, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.section-problem {
    padding: 80px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.problem-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.problem-bad {
    background: rgba(239, 83, 80, .04);
    border-color: rgba(239, 83, 80, .25);
}

.problem-bad .problem-icon {
    color: #ef5350;
}

.problem-good {
    background: rgba(53, 226, 122, .04);
    border-color: rgba(53, 226, 122, .25);
}

.problem-good .problem-icon {
    color: var(--accent);
}

.problem-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-lead {
    text-align: center;
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text);
    max-width: 640px;
    margin: 0 auto;
    font-weight: 500;
}

.session-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.session-step {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    padding: 32px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.session-step:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.session-final {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.session-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #0a1014;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.session-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.session-step h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.session-step p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.session-arrow {
    font-size: 20px;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .session-flow {
        flex-direction: column;
    }

    .session-arrow {
        transform: rotate(90deg);
    }
}

.world-state-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.ws-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.ws-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-title i {
    color: var(--accent);
}

.ws-sync {
    font-size: 13px;
    color: var(--text-muted);
}

.ws-sync strong {
    color: var(--text);
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ws-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
}

.ws-item-icon {
    font-size: 18px;
    color: var(--text-muted);
}

.ws-item-body {
    flex: 1;
}

.ws-item-name {
    font-size: 14px;
    font-weight: 600;
}

.ws-item-time {
    font-size: 12px;
    color: var(--text-muted);
}

.ws-item-status {
    font-size: 16px;
}

.ws-fresh .ws-item-status {
    color: var(--accent);
}

.ws-fresh .ws-item-icon {
    color: var(--accent);
}

.ws-aging .ws-item-status {
    color: #ff9800;
}

.ws-aging .ws-item-icon {
    color: #ff9800;
}

.ws-local {
    padding: 16px;
    background: rgba(255, 255, 255, .02);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.ws-local-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-local-title i {
    color: var(--accent-blue);
}

.ws-local-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ws-local-stats span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws-local-stats i {
    color: var(--accent);
}

/* HEADER — INNER LAYOUT */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

/* HEADER BRAND */

.header-brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-title-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.header-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    padding-left: 14px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--border);
}

/* NAV TOGGLE */

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
}

/* HEADER — RESPONSIVE */

@media (max-width: 767px) {
    .header-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        min-width: 0;
    }

    .header-title {
        font-size: 20px;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-subtitle {
        padding-left: 0;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .header-subtitle::before {
        display: none;
    }
}

/* NAVIGATION */

.site-nav {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-1px);
}


/*  HERO TEXT */

.hero-text {
    padding: 64px 0 48px;
    text-align: center;
}

.hero-headline {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subheadline {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 16px;
}

.hero-workflow {
    font-size: 15px;
    color: var(--accent);
    letter-spacing: .04em;
    margin-bottom: 32px;
}

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

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    color: #0a1014;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #5aff9b;
    color: #0a1014;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(53, 226, 122, .25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* SECTIONS */

.section {
    padding: 80px 0;
}

.section-muted {
    background: var(--bg-soft);
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}

.section-lead {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 40px;
}

.section-lead-large {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text);
}

.section-text {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 40px;
}

.section-text.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* GRIDS */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* CARDS  */

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.card-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff !important;
}

.card-text {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.card-dev {
    border-left: 3px solid var(--accent);
    color: #fff;
}

/* MISSION */

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.value-item:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.value-item i {
    font-size: 24px;
    color: var(--accent);
}

.value-item span {
    font-size: 14px;
    font-weight: 600;
}

/* SCENARIOS  */

.scenario {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.scenario:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.scenario-icon {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 14px;
}

.scenario h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.scenario p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* GROUP DIAGRAM  */

.group-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px 0;
}

.diagram-cloud,
.diagram-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}

.diagram-cloud i {
    font-size: 26px;
    color: var(--accent-blue);
}

.diagram-connector i {
    font-size: 24px;
    color: var(--accent);
}

.diagram-cloud span,
.diagram-connector span,
.diagram-lan span {
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.diagram-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.diagram-lan {
    padding: 8px 20px;
    border: 1px dashed var(--border);
    border-radius: 30px;
}

.diagram-branch {
    display: flex;
    gap: 26px;
    padding-top: 10px;
}

.branch-item {
    font-size: 26px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.branch-item:hover {
    color: var(--accent);
}

/* =========================================================
   LEVELS
   ========================================================= */

.level-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.level-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.level-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.level-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.level-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* =========================================================
   CODE BLOCK
   ========================================================= */

.code-block {
    margin-top: 40px;
    background: #0a0f14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    padding: 10px 16px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.code-block pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--accent);
    line-height: 1.6;
}

/* =========================================================
   ARCH STEPS
   ========================================================= */

.arch-steps {
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    transition: all var(--transition);
}

.step:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step h3 {
    font-size: 17px;
    margin: 0 0 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* =========================================================
   ECOSYSTEM
   ========================================================= */

.eco-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    color: var(--text);
}

.eco-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
    color: var(--accent);
}

.eco-card i {
    font-size: 24px;
    color: var(--accent);
}

.eco-card span {
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */

.comparison-table {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 14px;
}

.table th,
.table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: rgba(255, 255, 255, .03);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .06em;
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, .02);
}

/* =========================================================
   REVIEWS
   ========================================================= */

.reviews-grid {
    gap: 20px;
}

.review {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: all var(--transition);
}

.review:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.review-stars {
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.review-author {
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

/* =========================================================
   STATUS
   ========================================================= */

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 560px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.status-badge.status-ok {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */

.section-download {
    background: linear-gradient(
            180deg,
            var(--bg) 0%,
            #0d1116 100%
    );
}

.download-grid {
    margin-top: 20px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: all var(--transition);
}

.download-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(53, 226, 122, .15);
    color: var(--accent);
}

.download-card i {
    font-size: 36px;
    color: var(--accent);
}

.download-platform {
    font-size: 16px;
    font-weight: 700;
}

.download-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #0a0f14;
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-text {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}

.footer-bottom a {
    color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE — MOBILE FIRST
   ========================================================= */

@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 350ms ease;
    }

    .site-nav.open {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        padding: 12px 0;
    }

    .section {
        padding: 56px 0;
    }

    .hero-text {
        padding: 40px 0 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .site-nav {
        max-height: none !important;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


:root {
    --bg: #11161c;
    --line: #65727f;
    --line-soft: #3e4a55;
    --offline: #ef5350;
    --online: #35e27a;
    --signal: #35e27a;
    --received: #35e27a;
    --device: #dbe7f3;
    --text: #dce5ee;
    --muted: #7e8b98;
    --glow-green: rgba(53, 226, 122, .8);
}

.offlife-animation {
    position: relative;
    width: min(1100px, 96vw);
    height: min(720px, 96vh);
    margin: auto;
}

.network-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.network-line {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.4;
    stroke-dasharray: 5 7;
    opacity: .72;
}

.network-diagonal {
    opacity: .58;
}

.signal-line {
    fill: none;
    stroke: var(--signal);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0;
    filter: drop-shadow(0 0 4px var(--glow-green)) drop-shadow(0 0 10px rgba(53, 226, 122, .35));
}

.signal-line.incoming {
    stroke: var(--received);
    filter: drop-shadow(0 0 5px var(--glow-green)) drop-shadow(0 0 12px rgba(53, 226, 122, .40));
}

.device {
    position: absolute;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.device-icon {
    width: auto;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: none;
    border-radius: 0;

    background: none;

    color: var(--device);

    font-size: 48px;

    transition: color .3s ease,
    filter .3s ease,
    transform .3s ease;
}

.device.online .device-icon {
    border: none;

    box-shadow: none;

    color: #dff1ff;

    filter: drop-shadow(0 0 7px rgba(53, 226, 122, .35)) drop-shadow(0 0 15px rgba(53, 226, 122, .15));
}

/* GROUP FLOW — RESPONSIVE */

@media (max-width: 991px) {
    .group-flow {
        gap: 16px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        font-size: 16px;
    }

    .flow-arrow i {
        animation: none;
        transform: rotate(-90deg);
    }
}

@media (max-width: 767px) {
    .group-flow {
        flex-direction: column;
        gap: 14px;
        padding: 32px 0;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-arrow i {
        transform: rotate(-90deg);
    }

    .flow-connector,
    .flow-lan {
        min-width: 100%;
        max-width: 320px;
    }

    .flow-icons {
        gap: 10px;
    }

    .flow-icons .flow-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .lan-device {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flow-arrow,
    .flow-arrow i,
    .lan-arrow i {
        animation: none !important;
    }
}

/* OFFLIFE — CAPABILITIES MATRIX  */
.section-capabilities {
    overflow: hidden;
}

.capabilities-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 22px;
}

.cap-legend-item {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.cap-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    border: 1px solid transparent;
}

.cap-status.status-full {
    color: #8bdba8;
    background: rgba(82, 170, 112, .10);
    border-color: rgba(82, 170, 112, .28);
}

.cap-status.status-limited {
    color: #e5c77b;
    background: rgba(210, 169, 62, .10);
    border-color: rgba(210, 169, 62, .28);
}

.cap-status.status-none {
    color: #e68b8b;
    background: rgba(190, 75, 75, .10);
    border-color: rgba(190, 75, 75, .28);
}

.capabilities-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    -webkit-overflow-scrolling: touch;
}

.capabilities-table {
    width: 100%;
    min-width: 1100px;
    margin: 0;
    border-collapse: collapse;
    color: #fff;
    font-size: 17px;
    line-height: 1.6;
}

.capabilities-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 17px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.capabilities-table td {
    padding: 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: #fff;
}

.capabilities-table tbody tr:last-child td {
    border-bottom: 0;
}

.capabilities-table tbody tr:hover td {
    background: var(--accent-soft);
}

.capabilities-table th:nth-child(1) { width: 250px; }
.capabilities-table th:nth-child(2) { width: 220px; }
.capabilities-table th:nth-child(3) { width: 360px; }
.capabilities-table th:nth-child(4) { width: 320px; }

.capabilities-note {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent-soft);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.capabilities-note strong {
    color: var(--text);
}

@media (max-width: 991px) {
    .capabilities-legend {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .capabilities-table {
        min-width: 980px;
        font-size: 15px;
    }

    .capabilities-table th,
    .capabilities-table td {
        padding: 10px;
    }

    .capabilities-note {
        font-size: 13px;
    }
}

/* Final matrix typography/background fix */
.capabilities-table .cap-function { color: #fff; font-weight: 700; }
.capabilities-table .cap-status { font-size: 14px; }
.capabilities-table tbody td { background: var(--bg); color: #fff; }
.capabilities-table tbody tr:hover td { background: var(--bg); }


/* DEV STYLES  */

.dev-hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.dev-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dev-hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 32px;
}

.dev-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* SUBSECTIONS */

.dev-subsection {
    font-size: 22px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--text);
}

.dev-note {
    padding: 16px 20px;
    background: rgba(126, 184, 255, .06);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    margin: 20px 0;
}

.dev-note strong {
    color: var(--accent-blue);
}

/* SPEC TABLE */

.spec-table {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.spec-table .table {
    margin: 0;
}

.spec-table code {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, .06);
    border-radius: 4px;
    color: var(--accent);
}

/* LIST  */

.dev-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dev-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

.dev-list li strong {
    color: var(--text);
}

.dev-list li:last-child {
    border-bottom: none;
}

/* ARCH DIAGRAM  */

.arch-diagram {
    max-width: 640px;
    margin: 40px auto;
}

.arch-level {
    padding: 20px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.arch-level-accent {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.arch-level-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.arch-level-content {
    font-size: 14px;
    color: var(--text-muted);
}

.arch-arrow {
    text-align: center;
    font-size: 20px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* ENDPOINTS */

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.endpoint:hover {
    border-color: var(--accent);
}

.endpoint-method {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    min-width: 50px;
    text-align: center;
}

.endpoint-get {
    background: rgba(53, 226, 122, .15);
    color: var(--accent);
}

.endpoint-post {
    background: rgba(126, 184, 255, .15);
    color: var(--accent-blue);
}

.endpoint-path {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

.endpoint-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* MODEL GRID  */

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.model-card {
    padding: 28px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.model-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.model-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 16px;
}

.model-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.model-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* DEV ARCH  */

.dev-arch {
    max-width: 560px;
    margin: 32px auto;
    text-align: center;
}

.dev-arch-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.dev-arch-source {
    padding: 6px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.dev-arch-arrow {
    font-size: 18px;
    color: var(--text-muted);
    padding: 6px 0;
}

.dev-arch-layer {
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dev-arch-accent {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* REPOSITORIES  */

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.repo-card {
    display: block;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: all var(--transition);
}

.repo-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.repo-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 14px;
}

.repo-name {
    font-family: "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.repo-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* DEV ACTIONS  */

.dev-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* RESPONSIVE */

@media (max-width: 767px) {
    .dev-hero {
        padding: 56px 0 40px;
    }

    .endpoint {
        flex-wrap: wrap;
    }

    .endpoint-desc {
        width: 100%;
        margin-left: 66px;
    }

    .dev-hero-actions {
        flex-direction: column;
    }

    .dev-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.text-success_var {
    color: var(--accent);
}

@media (max-width: 767px) {
    /* снимаем ограничения контейнера */
    .capabilities-table-wrap {
        overflow: visible;
        border: none;
        background: transparent;
    }

    .capabilities-table,
    .capabilities-table tbody,
    .capabilities-table tr,
    .capabilities-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .capabilities-table thead {
        /* прячем шапку — лейблы будут в псевдоэлементах */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .capabilities-table tr {
        margin-bottom: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--bg-elevated);
        padding: 6px 0;
    }

    .capabilities-table td {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
        white-space: normal;
        word-break: break-word;
        font-size: 14px;
    }

    .capabilities-table tr td:last-child {
        border-bottom: none;
    }

    /* лейблы колонок */
    .capabilities-table td::before {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 4px;
    }

    .capabilities-table td:nth-child(1)::before { content: "Что работает"; }
    .capabilities-table td:nth-child(2)::before { content: "Как это выглядит"; }
    .capabilities-table td:nth-child(3)::before { content: "Что ограничивает"; }

    .capabilities-table td:nth-child(1):only-of-type::before { content: "Что не работает"; }
    .capabilities-table td:nth-child(2):only-of-type::before { content: "Почему"; }

    .capabilities-table tr:has(td:nth-child(3)) td:nth-child(1)::before { content: "Что работает"; }
    .capabilities-table tr:has(td:nth-child(3)) td:nth-child(2)::before { content: "Как это выглядит"; }
    .capabilities-table tr:has(td:nth-child(3)) td:nth-child(3)::before { content: "Что ограничивает"; }

    .capabilities-table tr:not(:has(td:nth-child(3))) td:nth-child(1)::before { content: "Что не работает"; }
    .capabilities-table tr:not(:has(td:nth-child(3))) td:nth-child(2)::before { content: "Почему"; }

    .capabilities-table.cap-conditions td:nth-child(1)::before { content: "Кейс"; }
    .capabilities-table.cap-conditions td:nth-child(2)::before { content: "Результат"; }

    .capabilities-table.cap-2col td:nth-child(1)::before { content: "Что не работает"; }
    .capabilities-table.cap-2col td:nth-child(2)::before { content: "Почему"; }
}