/* === Spec Page — Technical Specification === */

/* --- Base section --- */
.sp-section {
    padding: 80px 0 100px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}
.sp-section:last-child { border-bottom: none; }

.sp-open { background: rgba(15, 20, 25, 0.35); }
.sp-muted {
    background: rgba(15, 20, 25, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* --- Hero --- */
.sp-hero {
    padding: 84px 0 56px;
    min-height: 36vh;
    display: flex;
    align-items: center;
}
.sp-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.sp-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(0, 217, 126, 0.4);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(0, 217, 126, 0.08);
}
.sp-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.sp-accent {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 217, 126, 0.5);
}
.sp-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Hero stats */
.sp-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.sp-stat { text-align: center; }
.sp-stat-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.sp-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- TOC --- */
.sp-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.sp-toc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px;
    background: rgba(26, 31, 46, 0.7);
    border: 1px solid rgba(0, 217, 126, 0.15);
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: sp-toc-enter 0.4s ease forwards;
}
.sp-toc-item:nth-child(1) { animation-delay: 0.05s; }
.sp-toc-item:nth-child(2) { animation-delay: 0.12s; }
.sp-toc-item:nth-child(3) { animation-delay: 0.19s; }
.sp-toc-item:nth-child(4) { animation-delay: 0.26s; }
.sp-toc-item:nth-child(5) { animation-delay: 0.33s; }
.sp-toc-item:nth-child(6) { animation-delay: 0.40s; }
@keyframes sp-toc-enter {
    to { opacity: 1; transform: translateY(0); }
}
/* Shimmer sweep */
.sp-toc-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 126, 0.06), transparent);
    animation: sp-toc-shimmer 4s ease-in-out infinite;
}
.sp-toc-item:nth-child(odd)::before { animation-delay: 0s; }
.sp-toc-item:nth-child(even)::before { animation-delay: 2s; }
@keyframes sp-toc-shimmer {
    0% { left: -100%; }
    40%, 100% { left: 100%; }
}
.sp-toc-item:hover {
    border-color: rgba(0, 217, 126, 0.6);
    color: var(--primary);
    background: rgba(0, 217, 126, 0.08);
    box-shadow: 0 0 24px rgba(0, 217, 126, 0.15), inset 0 0 20px rgba(0, 217, 126, 0.04);
    transform: translateY(-3px);
}

/* --- Section titles (reuse from features) --- */
.sp-section .section-title { margin-bottom: 0.5rem; }
.sp-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* --- Matreshka intro --- */
.sp-matreshka-intro {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 217, 126, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.sp-matreshka-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-matreshka-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 217, 126, 0.4));
}
.sp-matreshka-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.sp-matreshka-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
.sp-matreshka-text strong { color: var(--text-primary); }

/* --- Protocol cards --- */
.sp-protocols-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}
.sp-proto-card {
    background: rgba(26, 31, 46, 0.7);
    border: 1px solid rgba(0, 217, 126, 0.12);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 260px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 2rem;
    align-items: start;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sp-proto-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    box-shadow: 0 0 30px rgba(0, 217, 126, 0.12);
}
.sp-proto-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
    grid-column: 1;
    grid-row: 1;
}
.sp-proto-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}
.sp-proto-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sp-badge-stealth { background: rgba(0, 217, 126, 0.15); color: var(--primary); }
.sp-badge-speed { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.sp-badge-reliable { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.sp-badge-tunnel { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.sp-badge-cloak { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.sp-proto-priority {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    opacity: 0.8;
    grid-column: 1;
    grid-row: 2;
}
.sp-proto-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}
.sp-proto-features {
    list-style: none;
    padding: 0;
    margin: 0;
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
}
.sp-proto-features li {
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 3px 0 3px 1.2rem;
    position: relative;
    white-space: nowrap;
}
.sp-proto-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.sp-proto-use {
    display: none;
}

/* --- Matreshka flow diagram --- */
.sp-matreshka-flow {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 217, 126, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}
.sp-matreshka-flow h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.sp-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.sp-flow-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 217, 126, 0.06);
    border: 1px solid rgba(0, 217, 126, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
}
.sp-flow-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sp-flow-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
}
.sp-flow-text strong { color: var(--text-primary); }
.sp-flow-arrow {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}
.sp-flow-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* --- Split-Tunnel section --- */
.sp-split-explain { margin-bottom: 3rem; }
.sp-split-arrows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.sp-split-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 2.5rem 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sp-split-path:hover {
    transform: translateY(-4px);
}
/* Shimmer on path cards */
.sp-split-path::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: sp-path-shimmer 5s ease-in-out infinite;
}
.sp-path-vpn::after { animation-delay: 2.5s; }
@keyframes sp-path-shimmer {
    0% { left: -100%; }
    30%, 100% { left: 100%; }
}
.sp-path-direct {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.sp-path-direct:hover { box-shadow: 0 0 30px rgba(16, 185, 129, 0.15); }
.sp-path-vpn {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.sp-path-vpn:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
.sp-path-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sp-path-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.sp-path-vpn .sp-path-arrow { color: #3b82f6; }
.sp-path-speed {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Split features grid */
.sp-split-features { margin-bottom: 3rem; }
.sp-split-features h3,
.sp-split-modes h3,
.sp-hotspot-scenarios h3,
.sp-hotspot-qr h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.sp-split-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.sp-split-card {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 217, 126, 0.12);
    border-radius: 16px;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sp-split-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 126, 0.05), transparent);
    animation: sp-card-shimmer 6s ease-in-out infinite;
}
.sp-split-card:nth-child(2)::before { animation-delay: 1.5s; }
.sp-split-card:nth-child(3)::before { animation-delay: 3s; }
.sp-split-card:nth-child(4)::before { animation-delay: 4.5s; }
@keyframes sp-card-shimmer {
    0% { left: -100%; }
    25%, 100% { left: 100%; }
}
.sp-split-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(0, 217, 126, 0.1);
}
.sp-split-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.sp-split-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Split modes */
.sp-modes-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}
.sp-mode {
    display: flex;
    gap: 1.2rem;
    align-items: baseline;
    padding: 16px 20px;
    background: rgba(26, 31, 46, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.sp-mode-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 240px;
}
.sp-mode-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Competitor note */
.sp-competitor-note {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
}
.sp-competitor-note p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}
.sp-competitor-note strong { color: var(--text-primary); }

/* --- Double VPN diagram --- */
.sp-double-diagram {
    margin-bottom: 2.5rem;
    overflow-x: auto;
}
.sp-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}
.sp-chain-node {
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-primary);
    min-width: 100px;
}
.sp-chain-you {
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.3);
}
.sp-chain-server1 {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.sp-chain-server2 {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.sp-chain-web {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.sp-chain-node small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}
.sp-chain-link {
    font-size: 1.3rem;
    color: var(--primary);
}

/* Double VPN grid */
.sp-double-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.sp-double-card {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 217, 126, 0.12);
    border-radius: 16px;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sp-double-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 126, 0.05), transparent);
    animation: sp-card-shimmer 6s ease-in-out infinite;
}
.sp-double-card:nth-child(2)::before { animation-delay: 1.5s; }
.sp-double-card:nth-child(3)::before { animation-delay: 3s; }
.sp-double-card:nth-child(4)::before { animation-delay: 4.5s; }
.sp-double-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(0, 217, 126, 0.1);
}
.sp-double-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.sp-double-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- Hotspot section --- */
.sp-hotspot-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 217, 126, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.sp-hotspot-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-hotspot-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 217, 126, 0.4));
}
.sp-hotspot-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.sp-hotspot-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.sp-hotspot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.sp-hotspot-card {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 217, 126, 0.12);
    border-radius: 16px;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sp-hotspot-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 126, 0.05), transparent);
    animation: sp-card-shimmer 6s ease-in-out infinite;
}
.sp-hotspot-card:nth-child(2)::before { animation-delay: 1.5s; }
.sp-hotspot-card:nth-child(3)::before { animation-delay: 3s; }
.sp-hotspot-card:nth-child(4)::before { animation-delay: 4.5s; }
.sp-hotspot-card:hover {
    border-color: rgba(0, 217, 126, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(0, 217, 126, 0.1);
}
.sp-hotspot-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.sp-hotspot-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.sp-hotspot-qr {
    background: rgba(26, 31, 46, 0.5);
    border: 1px solid rgba(0, 217, 126, 0.12);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
}
.sp-hotspot-qr p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Comparison table --- */
.sp-comparison-intro {
    max-width: 750px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.sp-comparison-intro p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.sp-comparison-intro strong { color: var(--text-primary); }

.sp-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 126, 0.3);
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 2.5rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}
.sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.sp-table th,
.sp-table td {
    padding: 13px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 217, 126, 0.35);
    border-right: 1px solid rgba(0, 217, 126, 0.2);
}
.sp-table th:last-child,
.sp-table td:last-child { border-right: none; }
.sp-table th:first-child,
.sp-table td:first-child {
    text-align: left;
    color: #a0aab8;
    min-width: 180px;
}
.sp-table thead th {
    background: rgba(0, 217, 126, 0.06);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sp-th-us { color: var(--primary) !important; background: rgba(0, 217, 126, 0.1) !important; }
.sp-td-us { background: rgba(0, 217, 126, 0.05); }
.sp-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.sp-table tbody tr:last-child td { border-bottom: none; }
.sp-yes { color: var(--primary); font-weight: 600; }
.sp-warn { color: var(--warning, #f59e0b); }
.sp-no { color: #8a95a3; }

/* Verdict */
.sp-verdict {
    background: rgba(0, 217, 126, 0.06);
    border: 1px solid rgba(0, 217, 126, 0.25);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}
.sp-verdict h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.sp-verdict p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 0.5rem;
}
.sp-verdict strong { color: var(--text-primary); }

/* --- CTA --- */
.sp-cta { text-align: center; }
.sp-cta-inner {
    max-width: 900px;
    margin: 0 auto;
}
.sp-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.sp-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.sp-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.sp-cta-extra {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.sp-cta-item { color: var(--text-secondary); }
.sp-cta-check { color: var(--primary); font-weight: 700; margin-right: 4px; }

/* --- Hero CTA row --- */
.sp-hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.sp-hero-btn {
    font-size: 1.1rem;
    padding: 14px 36px;
}
.sp-hero-hint {
    font-size: 0.88rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* --- Quick Benefits list (horizontal row, animated checks) --- */
.sp-benefits { padding: 48px 0; }
.sp-benefits-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.sp-benefit-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    animation: sp-check-in 0.5s ease forwards;
}
.sp-benefit-row:nth-child(1) { animation-delay: 0.1s; }
.sp-benefit-row:nth-child(2) { animation-delay: 0.3s; }
.sp-benefit-row:nth-child(3) { animation-delay: 0.5s; }
.sp-benefit-row:nth-child(4) { animation-delay: 0.7s; }
@keyframes sp-check-in {
    to { opacity: 1; transform: translateY(0); }
}
.sp-benefit-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 217, 126, 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    animation: sp-check-pulse 2.5s ease-in-out infinite;
}
@keyframes sp-check-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 126, 0.3); }
    50% { box-shadow: 0 0 10px 3px rgba(0, 217, 126, 0.15); }
}

/* --- Pricing section (uses shared pricing.css for cards) --- */
.sp-pricing .plans-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.sp-pricing .pricing-card {
    min-height: 480px;
    display: flex;
    flex-direction: column;
}
.sp-pricing .plan-cta {
    margin-top: auto;
    text-align: center;
}
.sp-pricing .plan-cta .btn {
    display: inline-block;
    min-width: 160px;
}
.sp-pricing-note {
    text-align: center;
    margin-top: 1.5rem;
}
.sp-pricing-note p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* --- Header fix (same as features) --- */
body.spec-page .site-header {
    background: rgba(15, 20, 25, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* --- Reveal animation --- */
.spec-page .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.spec-page .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sp-proto-card {
        grid-template-columns: 200px 1fr;
    }
    .sp-proto-features {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        flex-wrap: wrap;
        gap: 0 1.5rem;
    }
    .sp-split-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-double-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-hotspot-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-pricing .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sp-hero { padding: 60px 0 40px; min-height: auto; }
    .sp-section { padding: 36px 0 48px; }

    .sp-hero-stats { gap: 1.5rem; }
    .sp-stat-num { font-size: 1.8rem; }

    .sp-hero-cta-row { flex-direction: column; gap: 0.5rem; }
    .sp-hero-sub { font-size: 0.95rem; margin-bottom: 1.5rem; }

    .sp-benefits { padding: 32px 0; }
    .sp-benefits-list { gap: 0.8rem 1.5rem; }
    .sp-benefit-row { font-size: 0.88rem; }
    .sp-benefit-check { width: 24px; height: 24px; font-size: 0.75rem; }

    .sp-toc-grid { grid-template-columns: 1fr; }
    .sp-toc-item { justify-content: center; padding: 20px 20px; font-size: 1.1rem; }

    .sp-matreshka-intro,
    .sp-hotspot-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    .sp-matreshka-icon,
    .sp-hotspot-icon {
        width: 48px;
        height: 48px;
    }
    .sp-matreshka-logo,
    .sp-hotspot-logo {
        width: 48px;
        height: 48px;
    }

    .sp-proto-card {
        display: flex;
        flex-direction: column;
        padding: 1.2rem 1rem;
        gap: 0.4rem;
    }
    .sp-proto-header,
    .sp-proto-priority,
    .sp-proto-desc,
    .sp-proto-features {
        grid-column: unset;
        grid-row: unset;
    }
    .sp-proto-name { font-size: 1.2rem; }
    .sp-proto-desc { font-size: 0.85rem; margin-bottom: 0.4rem; }
    .sp-proto-features { margin-top: 0.3rem; }
    .sp-proto-features li { white-space: normal; font-size: 0.8rem; }

    .sp-split-diagram { padding: 1.5rem; }
    .sp-split-arrows { grid-template-columns: 1fr; }
    .sp-split-path { padding: 1.5rem; }
    .sp-split-grid { grid-template-columns: 1fr; }
    .sp-split-card { padding: 1.5rem; }
    .sp-split-card h4 { font-size: 1rem; }
    .sp-split-card p { font-size: 0.85rem; }
    .sp-split-arrows { grid-template-columns: 1fr; }

    .sp-double-grid { grid-template-columns: 1fr; }
    .sp-double-card { padding: 1.5rem; }
    .sp-double-card h4 { font-size: 1rem; }
    .sp-double-card p { font-size: 0.85rem; }

    .sp-hotspot-grid { grid-template-columns: 1fr; }
    .sp-hotspot-card { padding: 1.5rem; }
    .sp-hotspot-card h4 { font-size: 1rem; }
    .sp-hotspot-card p { font-size: 0.85rem; }

    .sp-pricing .plans-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    .sp-pricing .pricing-card { min-height: auto; }

    .sp-flow-steps { flex-direction: column; }
    .sp-flow-arrow { transform: rotate(90deg); }

    .sp-chain { flex-direction: column; }
    .sp-chain-link { transform: rotate(90deg); }

    .sp-mode {
        flex-direction: column;
        gap: 0.3rem;
        padding: 12px 16px;
    }
    .sp-mode-name { min-width: unset; font-size: 0.9rem; }
    .sp-mode-desc { font-size: 0.85rem; }

    .sp-table { min-width: 700px; font-size: 0.8rem; }
    .sp-table th, .sp-table td { padding: 10px 12px; }
    .sp-table-wrap {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .sp-verdict { padding: 1.5rem; }
    .sp-verdict h3 { font-size: 1.1rem; }
    .sp-verdict p { font-size: 0.88rem; }

    .sp-competitor-note { padding: 1rem 1.2rem; }
    .sp-competitor-note p { font-size: 0.82rem; }

    .sp-cta h2 { font-size: 1.6rem; }
    .sp-cta p { font-size: 0.92rem; }
    .sp-cta-extra { flex-direction: column; align-items: center; gap: 0.5rem; }
    .sp-cta-buttons { flex-direction: column; align-items: center; }

    .sp-section .section-title { font-size: 1.5rem; }
    .sp-section .section-subtitle { font-size: 0.92rem; }
}
