:root {
    --background: #08090b;
    --background-soft: #101216;
    --card: #13151a;
    --card-hover: #181b21;

    --text: #f4f4f4;
    --text-secondary: #9b9da5;

    --border: rgba(255, 255, 255, 0.09);

    --red: #ff304f;
    --red-dark: #9c1027;

    --container: 1320px;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 30% -20%,
            rgba(255, 48, 79, 0.10),
            transparent 35%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;

    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(8, 9, 11, 0.82);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 82px;

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

    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-mark {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--red);

    color: white;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: -0.04em;

    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.logo-text strong {
    font-size: 15px;
    letter-spacing: 0.08em;
}

.logo-text small {
    color: var(--text-secondary);

    font-size: 9px;

    letter-spacing: 0.28em;

    margin-top: 7px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.navigation a {
    color: #c8c9ce;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s ease;
}

.navigation a:hover {
    color: white;
}

.menu-button {
    display: none;

    background: none;
    border: 0;

    color: white;

    font-size: 24px;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 55px 0 30px;
}

.hero-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);

    color: #85878e;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.18em;
}

.live-status {
    display: flex;
    align-items: center;

    gap: 8px;
}

.live-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--red);

    box-shadow: 0 0 13px rgba(255, 48, 79, 0.8);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.hero-grid {
    display: grid;

    grid-template-columns: minmax(0, 2fr) minmax(310px, 0.78fr);

    gap: 1px;

    background: var(--border);

    border: 1px solid var(--border);

    margin-top: 30px;
}


/* =========================
   MAIN STORY
========================= */

.main-story {
    min-height: 610px;

    position: relative;

    overflow: hidden;

    background: #111318;
}

.main-story-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(5, 5, 7, 0.97) 5%,
            rgba(5, 5, 7, 0.50) 50%,
            rgba(5, 5, 7, 0.14)
        ),
        radial-gradient(
            circle at 78% 20%,
            rgba(255, 48, 79, 0.64),
            transparent 23%
        ),
        radial-gradient(
            circle at 58% 35%,
            rgba(112, 50, 255, 0.40),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #181c28,
            #090a0c 70%
        );

    transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.main-story:hover .main-story-background {
    transform: scale(1.035);
}

.main-story::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -100px;
    top: 40px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.10);

    box-shadow:
        0 0 0 40px rgba(255,255,255,0.015),
        0 0 0 80px rgba(255,255,255,0.01);
}

.main-story-content {
    position: absolute;

    z-index: 2;

    left: 55px;
    right: 55px;
    bottom: 48px;

    max-width: 800px;
}

.category {
    display: inline-flex;

    padding: 6px 9px;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.14em;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.11);

    backdrop-filter: blur(10px);
}

.category-ai {
    color: #ff6078;
}

.category-security {
    color: #50d9ff;
}

.category-hardware {
    color: #ffcc63;
}

.category-dev {
    color: #b997ff;
}

.category-cloud {
    color: #72e0c2;
}

.category-network {
    color: #ff8f59;
}

.main-story h1 {
    max-width: 850px;

    font-size: clamp(38px, 5vw, 74px);

    line-height: 0.98;

    letter-spacing: -0.055em;

    margin-top: 22px;
}

.main-story p {
    max-width: 680px;

    color: #b5b7bd;

    font-size: 16px;

    margin-top: 24px;
}

.story-meta {
    display: flex;
    gap: 10px;

    color: #777981;

    font-size: 11px;

    margin-top: 30px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================
   LATEST
========================= */

.latest-panel {
    background: #0e1014;

    padding: 29px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 16px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    font-size: 17px;
}

.panel-header span {
    color: var(--red);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.16em;
}

.latest-item {
    display: grid;

    grid-template-columns: 52px 1fr;

    gap: 15px;

    padding: 23px 0;

    border-bottom: 1px solid var(--border);
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-item time {
    color: #65676e;

    font-size: 11px;

    font-variant-numeric: tabular-nums;
}

.mini-category {
    display: block;

    color: var(--red);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.14em;

    margin-bottom: 7px;
}

.latest-item h3 {
    color: #d7d8dd;

    font-size: 13px;
    line-height: 1.45;

    font-weight: 600;

    transition: 0.2s;
}

.latest-item:hover h3 {
    color: white;
}


/* =========================
   NEWS
========================= */

.news-section {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.section-heading > div {
    display: flex;
    align-items: center;

    gap: 18px;
}

.section-number {
    color: var(--red);

    font-size: 11px;

    font-variant-numeric: tabular-nums;
}

.section-heading h2 {
    font-size: clamp(27px, 3vw, 40px);

    line-height: 1;

    letter-spacing: -0.035em;
}

.all-link {
    color: #8f9198;

    font-size: 12px;

    transition: 0.2s;
}

.all-link:hover {
    color: white;
}

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.news-card {
    background: var(--card);

    border: 1px solid var(--border);

    overflow: hidden;

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.news-card:hover {
    transform: translateY(-4px);

    background: var(--card-hover);

    border-color: rgba(255,255,255,0.17);
}

.card-image {
    height: 260px;

    position: relative;

    display: grid;
    place-items: center;

    overflow: hidden;
}

.card-image::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border: 1px solid rgba(255,255,255,0.11);

    border-radius: 50%;

    box-shadow:
        0 0 0 28px rgba(255,255,255,0.02),
        0 0 0 56px rgba(255,255,255,0.012);
}

.card-image .category {
    position: absolute;

    z-index: 3;

    left: 18px;
    top: 18px;
}

.image-symbol {
    z-index: 2;

    font-size: 70px;
    font-weight: 900;

    letter-spacing: -0.07em;

    opacity: 0.85;
}

.gradient-ai {
    background:
        radial-gradient(circle at 70% 20%, #b42046, transparent 40%),
        linear-gradient(140deg, #271018, #101116);
}

.gradient-security {
    background:
        radial-gradient(circle at 25% 25%, #087a9b, transparent 40%),
        linear-gradient(145deg, #101c22, #0c1014);
}

.gradient-hardware {
    background:
        radial-gradient(circle at 70% 25%, #806119, transparent 40%),
        linear-gradient(145deg, #231d11, #0e0f11);
}

.gradient-dev {
    background:
        radial-gradient(circle at 25% 30%, #50338b, transparent 40%),
        linear-gradient(145deg, #1d1729, #0d0e11);
}

.gradient-cloud {
    background:
        radial-gradient(circle at 65% 25%, #176b5a, transparent 40%),
        linear-gradient(145deg, #14231f, #0c0f0e);
}

.gradient-network {
    background:
        radial-gradient(circle at 25% 25%, #883a1d, transparent 40%),
        linear-gradient(145deg, #291912, #0e0e10);
}

.card-body {
    padding: 23px;
}

.card-meta {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    color: #777981;

    font-size: 10px;

    margin-bottom: 17px;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.card-body h3 {
    font-size: 21px;

    line-height: 1.18;

    letter-spacing: -0.025em;
}

.card-body p {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.65;

    margin-top: 15px;
}


/* =========================
   TOPICS
========================= */

.topics-section {
    padding: 30px 0 110px;
}

.topics {
    border-top: 1px solid var(--border);
}

.topics a {
    display: grid;

    grid-template-columns: 70px 1fr 60px;

    align-items: center;

    min-height: 92px;

    border-bottom: 1px solid var(--border);

    transition:
        background 0.2s,
        padding 0.2s;
}

.topics a:hover {
    background: rgba(255,255,255,0.025);

    padding-left: 12px;
}

.topics span {
    color: #606269;

    font-size: 11px;
}

.topics strong {
    text-align: right;

    font-size: 20px;

    font-weight: 400;

    transition: transform 0.2s;
}

.topics a:hover strong {
    transform: translateX(6px);
}


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

footer {
    border-top: 1px solid var(--border);

    padding: 55px 0;

    background: #07080a;
}

.footer-inner {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.footer-brand p {
    color: #6d6f75;

    font-size: 12px;

    margin-top: 18px;
}

.footer-info {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 7px;

    color: #62646a;

    font-size: 10px;

    letter-spacing: 0.05em;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1020px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .main-story {
        min-height: 550px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 760px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 70px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        display: none;

        position: absolute;

        top: 70px;
        left: 0;
        right: 0;

        padding: 25px;

        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        background: #0a0b0e;

        border-bottom: 1px solid var(--border);
    }

    .navigation.open {
        display: flex;
    }

    .hero {
        padding-top: 30px;
    }

    .main-story {
        min-height: 520px;
    }

    .main-story-content {
        left: 25px;
        right: 25px;
        bottom: 28px;
    }

    .main-story h1 {
        font-size: 42px;
    }

    .main-story p {
        font-size: 14px;
    }

    .latest-panel {
        padding: 22px;
    }

    .news-section {
        padding: 65px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 230px;
    }

    .topics a {
        grid-template-columns: 45px 1fr 30px;

        min-height: 78px;

        font-size: 14px;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-info {
        align-items: flex-start;
    }

}


@media (max-width: 480px) {

    .logo-text strong {
        font-size: 13px;
    }

    .main-story {
        min-height: 480px;
    }

    .main-story h1 {
        font-size: 36px;
    }

    .main-story p {
        font-size: 13px;
    }

    .story-meta {
        flex-wrap: wrap;
    }

    .section-heading {
        align-items: center;
    }

    .all-link {
        display: none;
    }

}
