* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #071018;
    --surface: #0c1722;
    --surface-2: #111f2d;
    --border: rgba(255,255,255,.09);
    --text: #f3f7fa;
    --muted: #91a4b5;
    --blue: #20a4f3;
    --cyan: #42d9ff;
    --green: #33d17a;
    --yellow: #ffc857;
    --red: #ff5151;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(
            circle at top right,
            rgba(32,164,243,.12),
            transparent 30%
        ),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.topbar {
    width: 100%;
    padding: 22px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(7,16,24,.92);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: white;
    background: linear-gradient(
        135deg,
        var(--blue),
        var(--cyan)
    );
    box-shadow: 0 0 30px rgba(32,164,243,.25);
}

.brand h1 {
    font-size: 18px;
    letter-spacing: 2px;
}

.brand p {
    color: var(--cyan);
    font-size: 12px;
    margin-top: 4px;
    letter-spacing: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--muted);
    font-size: 13px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: bold;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    50% {
        opacity: .35;
    }
}

.hero {
    max-width: 1450px;
    margin: auto;
    padding: 80px 5% 65px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: center;
}

.eyebrow,
.section-label {
    color: var(--cyan);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h2 {
    font-size: clamp(44px, 6vw, 82px);
    line-height: .98;
    margin: 18px 0 25px;
    max-width: 850px;
}

.hero h2 span {
    color: var(--cyan);
    display: block;
}

.hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    border-radius: 18px;
    overflow: hidden;
}

.stat {
    text-align: center;
    padding: 35px 10px;
}

.stat + .stat {
    border-left: 1px solid var(--border);
}

.stat strong {
    display: block;
    font-size: 35px;
    color: var(--cyan);
}

.stat span {
    font-size: 12px;
    color: var(--muted);
}

.dashboard {
    max-width: 1450px;
    margin: auto;
    padding: 0 5% 80px;
}

.priority-section,
.categories-section,
.discovery {
    margin-bottom: 75px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 25px;
}

.section-heading h3,
.discovery h3 {
    margin-top: 8px;
    font-size: 30px;
}

.section-label.hot {
    color: var(--red);
}

.section-label.opportunity {
    color: var(--yellow);
}

.updated {
    color: var(--muted);
    font-size: 12px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    align-items: stretch;
}

.story-grid.one-story {
    grid-template-columns: 1fr;
}

.story-grid.two-stories {
    grid-template-columns: repeat(2, 1fr);
}

.story-grid.three-stories {
    grid-template-columns: repeat(3, 1fr);
}

.story-card {
    border: 1px solid var(--border);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );
    border-radius: 18px;
    padding: 25px;
    transition: .25s ease;

    display: flex;
    flex-direction: column;
    width: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: rgba(66,217,255,.45);
}

.story-card.featured {
    box-shadow: inset 0 3px 0 var(--cyan);
}

.story-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category {
    color: var(--cyan);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.category.business {
    color: var(--green);
}

.category.events {
    color: var(--yellow);
}

.score {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}

.score.high {
    color: var(--green);
    border: 2px solid var(--green);
}

.score.medium {
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

.story-card h4 {
    font-size: 21px;
    line-height: 1.35;
    margin: 22px 0 14px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 85px;
}

.story-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 90px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 5px;
    margin: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.metrics span {
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.metrics b {
    display: block;
    margin-top: 5px;
    color: white;
    font-size: 12px;
}

.story-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.story-actions button {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: white;
    border-radius: 8px;
    padding: 9px 13px;
    cursor: pointer;
    font-size: 11px;
    transition: .2s;
}

.story-actions button:hover {
    background: rgba(255,255,255,.1);
}

.story-actions .primary {
    margin-left: auto;
    background: var(--blue);
    border-color: var(--blue);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.news-category {
    min-height: 125px;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,.02);
    position: relative;
    transition: .25s;
    cursor: pointer;
}

.news-category:hover {
    background: rgba(32,164,243,.07);
    border-color: rgba(32,164,243,.4);
}

.icon {
    font-size: 27px;
}

.news-category h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.news-category p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.news-category > span {
    position: absolute;
    top: 13px;
    right: 13px;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background: rgba(32,164,243,.15);
    color: var(--cyan);
    font-size: 11px;
    font-weight: bold;
}

.discovery {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background:
        linear-gradient(
            135deg,
            rgba(255,200,87,.035),
            transparent
        );
}

.discovery p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 15px;
    max-width: 650px;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: center;
}

.keyword-cloud span {
    padding: 11px 15px;
    border: 1px solid rgba(255,200,87,.25);
    border-radius: 50px;
    color: #f9d990;
    background: rgba(255,200,87,.05);
    font-size: 13px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 35px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

footer strong {
    color: white;
    letter-spacing: 1px;
}

footer small {
    opacity: .55;
}

@media (max-width: 1050px) {

    .hero {
        grid-template-columns: 1fr;
    }

    .story-grid,
    .story-grid.one-story,
    .story-grid.two-stories,
    .story-grid.three-stories {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .discovery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .topbar {
        align-items: flex-start;
    }

    .header-right {
        display: none;
    }

    .hero {
        padding-top: 50px;
    }

    .hero h2 {
        font-size: 47px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat + .stat {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .discovery {
        padding: 25px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 13px;
    }
}