:root {
    --w7c-bg: #061019;
    --w7c-bg-soft: #0a1721;
    --w7c-panel: rgba(11, 26, 38, .82);
    --w7c-line: rgba(108, 211, 255, .22);
    --w7c-text: #eef8ff;
    --w7c-muted: #9bb3c3;
    --w7c-cyan: #46cbff;
    --w7c-cyan-2: #1597ff;
    --w7c-radius: 14px;
    --w7c-shadow: 0 18px 60px rgba(0,0,0,.28);
}

body.w7c-front-page {
    background: var(--w7c-bg);
    color: var(--w7c-text);
}

.w7c-home {
    background:
        radial-gradient(circle at 20% 0%, rgba(19, 137, 207, .16), transparent 34rem),
        linear-gradient(180deg, #07131e 0%, #050c12 100%);
    color: var(--w7c-text);
    min-height: 100vh;
}

.w7c-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.w7c-hero {
    min-height: 620px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 10, 16, .95) 0%, rgba(3, 10, 16, .72) 44%, rgba(3, 10, 16, .30) 100%),
        radial-gradient(circle at 75% 42%, rgba(31, 170, 255, .28), transparent 36%),
        #08131c;
    border-bottom: 1px solid var(--w7c-line);
}

.w7c-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.w7c-hero__inner {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
    padding-block: 80px;
}

.w7c-kicker {
    color: var(--w7c-cyan);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.w7c-hero h1 {
    color: #fff;
    font-size: clamp(2.7rem, 7vw, 6.3rem);
    line-height: .98;
    letter-spacing: -.04em;
    margin: 0;
    max-width: 900px;
    text-shadow: 0 8px 34px rgba(0,0,0,.35);
}

.w7c-hero__lead {
    color: #c7d9e5;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.9;
    margin: 28px 0 0;
}

.w7c-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.w7c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--w7c-line);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(255,255,255,.025);
    transition: .2s ease;
}

.w7c-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(70,203,255,.72);
    background: rgba(70,203,255,.08);
}

.w7c-btn--primary {
    background: linear-gradient(135deg, var(--w7c-cyan-2), var(--w7c-cyan));
    color: #03101a !important;
    border-color: transparent;
    font-weight: 700;
}

.w7c-section {
    padding-block: 72px;
}

.w7c-section + .w7c-section {
    border-top: 1px solid rgba(255,255,255,.055);
}

.w7c-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.w7c-section h2 {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    margin: 0;
}

.w7c-more {
    color: var(--w7c-cyan) !important;
    text-decoration: none !important;
}

.w7c-category-grid,
.w7c-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.w7c-category-card,
.w7c-post-card {
    border: 1px solid var(--w7c-line);
    border-radius: var(--w7c-radius);
    background: linear-gradient(180deg, rgba(15, 34, 48, .86), rgba(8, 20, 30, .88));
    box-shadow: var(--w7c-shadow);
}

.w7c-category-card {
    min-height: 170px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: #fff !important;
    text-decoration: none !important;
    transition: .22s ease;
}

.w7c-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(70,203,255,.65);
    box-shadow: 0 22px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(70,203,255,.08) inset;
}

.w7c-category-card__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.w7c-category-card__desc {
    color: var(--w7c-muted);
    margin-top: 10px;
    line-height: 1.7;
}

.w7c-category-card__arrow {
    margin-top: auto;
    color: var(--w7c-cyan);
    font-size: 1.4rem;
}

.w7c-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.w7c-post-card {
    overflow: hidden;
}

.w7c-post-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0c1b27;
}

.w7c-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.w7c-post-card:hover .w7c-post-card__thumb img {
    transform: scale(1.035);
}

.w7c-post-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--w7c-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.w7c-post-card__body {
    padding: 20px;
}

.w7c-post-card__meta {
    color: var(--w7c-cyan);
    font-size: .76rem;
    margin: 0 0 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.w7c-post-card h3 {
    font-size: 1.12rem;
    line-height: 1.45;
    margin: 0 0 10px;
}

.w7c-post-card h3 a {
    color: #fff !important;
    text-decoration: none !important;
}

.w7c-post-card__body > p:last-child {
    color: var(--w7c-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .w7c-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w7c-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .w7c-hero { min-height: 540px; }
}

@media (max-width: 640px) {
    .w7c-container,
    .w7c-hero__inner { width: min(100% - 28px, 1180px); }
    .w7c-hero { min-height: 500px; }
    .w7c-hero__inner { padding-block: 64px; }
    .w7c-category-grid,
    .w7c-post-grid { grid-template-columns: 1fr; }
    .w7c-section { padding-block: 48px; }
    .w7c-section__head { align-items: start; flex-direction: column; }
}
