:root {
    --bg: #02070c;
    --bg-elevated: #061019;
    --panel: rgba(6, 16, 25, 0.88);
    --panel-strong: #07131e;
    --line: rgba(72, 165, 231, 0.17);
    --line-strong: rgba(46, 166, 255, 0.38);
    --text: #f4f8fb;
    --muted: #8ea0b0;
    --blue: #169cff;
    --blue-2: #0479df;
    --green: #31df84;
    --red: #ff4b63;
    --header-h: 72px;
    --max: 1480px;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 76% 0%, rgba(13, 106, 178, .12), transparent 27%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(2, 7, 12, .92);
    border-bottom: 1px solid rgba(69, 151, 207, .12);
    backdrop-filter: blur(18px);
}
.nav-shell { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; }
.brand img { width: 42px; height: 42px; }
.brand-wordmark { display: grid; line-height: 1; }
.brand-wordmark strong { letter-spacing: .12em; font-size: 18px; }
.brand-wordmark span { margin-top: 5px; color: var(--blue); letter-spacing: .3em; font-size: 10px; font-weight: 800; }

.primary-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 28px; }
.primary-nav a { position: relative; padding: 26px 0 22px; color: #c8d3dc; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav a.active { color: #fff; }
.primary-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 2px; background: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { min-height: 40px; padding: 0 20px; border-radius: 6px; border: 1px solid var(--line-strong); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.btn:hover { border-color: rgba(70, 186, 255, .8); background: rgba(15, 107, 171, .12); }
.btn:active { transform: translateY(1px); }
.btn-primary { border-color: var(--blue); background: linear-gradient(180deg, #25a7ff 0%, #0a83ea 100%); box-shadow: 0 0 26px rgba(16, 149, 255, .12); }
.btn-primary:hover { background: linear-gradient(180deg, #36b0ff 0%, #108bed 100%); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: #fff; font-size: 20px; }

.hero { position: relative; min-height: 520px; overflow: hidden; border-bottom: 1px solid rgba(46, 166, 255, .12); }
.hero::before { content: ""; position: absolute; inset: 0; background: url('../img/hero-city.svg') center 54% / cover no-repeat; transform: scale(1.01); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 5, 9, .96) 0%, rgba(1, 5, 9, .87) 30%, rgba(1, 5, 9, .3) 58%, rgba(1, 5, 9, .12) 78%, rgba(1, 5, 9, .35) 100%), linear-gradient(0deg, rgba(1, 5, 9, .75) 0%, transparent 50%); }
.hero-inner { position: relative; z-index: 2; min-height: 520px; display: flex; align-items: center; padding: 72px 0 116px; }
.hero-copy { max-width: 670px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 11px 0 15px; font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 615px; margin: 0; color: #b6c2cc; line-height: 1.7; font-size: 15px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-cta .btn { min-width: 195px; min-height: 50px; font-size: 13px; }

.status-wrap { position: relative; z-index: 4; margin-top: -72px; }
.status-bar { min-height: 92px; display: grid; grid-template-columns: 1.15fr 1fr 1.2fr 1.25fr auto; background: rgba(5, 14, 22, .96); border: 1px solid rgba(60, 164, 233, .18); border-radius: var(--radius); box-shadow: 0 18px 35px rgba(0,0,0,.22); overflow: hidden; }
.status-item { display: flex; align-items: center; gap: 13px; padding: 22px 26px; min-width: 0; }
.status-item + .status-item { border-left: 1px solid rgba(73, 145, 194, .12); }
.status-icon { width: 34px; height: 34px; border: 1px solid rgba(44, 160, 238, .25); border-radius: 50%; display: grid; place-items: center; color: var(--blue); flex: 0 0 auto; }
.status-copy { min-width: 0; }
.status-label { display: block; color: #a8b5c0; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status-value { display: block; margin-top: 5px; color: #f6fbff; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-value.online { color: var(--green); }
.status-value.offline { color: var(--red); }
.status-action { display: flex; align-items: center; justify-content: center; padding: 18px; }
.status-action .btn { min-width: 142px; }

main { padding: 14px 0 42px; }
.panel { background: linear-gradient(180deg, rgba(7, 18, 28, .88), rgba(4, 12, 19, .94)); border: 1px solid rgba(66, 151, 209, .15); border-radius: var(--radius); }
.welcome-panel { display: grid; grid-template-columns: .95fr 2fr; min-height: 232px; overflow: hidden; }
.welcome-copy { padding: 32px 34px; border-right: 1px solid rgba(66, 151, 209, .14); position: relative; }
.welcome-copy::after { content: ""; position: absolute; right: -45px; top: 0; width: 90px; height: 100%; background: linear-gradient(110deg, transparent 48%, rgba(37, 151, 225, .08) 49%, transparent 51%); pointer-events: none; }
.section-kicker { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section-title { margin: 7px 0 10px; font-size: 27px; letter-spacing: -.02em; text-transform: uppercase; }
.section-title span { color: var(--blue); }
.section-copy { color: #a8b6c2; font-size: 13px; line-height: 1.65; }
.welcome-copy .btn { margin-top: 18px; }
.features { display: grid; grid-template-columns: repeat(5, 1fr); }
.feature { padding: 31px 20px 25px; text-align: center; }
.feature-icon { width: 56px; height: 56px; margin: 0 auto 15px; border: 1px solid rgba(30, 152, 238, .48); border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-size: 21px; }
.feature h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; }
.feature p { margin: 0; color: #93a3b0; font-size: 12px; line-height: 1.55; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr .92fr; gap: 14px; margin-top: 14px; }
.card { min-height: 330px; overflow: hidden; }
.card-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid rgba(66, 151, 209, .11); }
.card-head h2 { margin: 0; font-size: 14px; text-transform: uppercase; }
.card-head .btn { min-height: 32px; padding: 0 13px; font-size: 10px; }
.card-body { padding: 12px 20px 18px; }
.news-list, .stream-list { display: grid; gap: 10px; }
.news-item, .stream-item { display: grid; grid-template-columns: 145px 1fr; gap: 13px; align-items: center; min-height: 76px; }
.thumb { width: 145px; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; border: 1px solid rgba(73, 164, 224, .18); background: #07131d; }
.meta { color: #7f93a3; font-size: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta strong { color: var(--blue); font-size: 9px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 2px; }
.news-item h3, .stream-item h3 { margin: 4px 0 3px; font-size: 14px; font-weight: 650; }
.news-item p, .stream-item p { margin: 0; color: #9dabb7; font-size: 11px; line-height: 1.4; }
.stream-platform { width: 19px; height: 19px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 9px; font-weight: 900; background: #9146ff; color: #fff; }
.stream-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; color: #fff; font-size: 9px; }
.live-pill { background: var(--red); color: #fff; padding: 2px 5px; border-radius: 3px; font-size: 8px; font-weight: 900; }

.join-card .card-body { min-height: 276px; display: flex; }
.join-box { width: 100%; border: 1px solid rgba(50, 147, 213, .22); border-radius: 7px; padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.join-top { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-bottom: 21px; }
.join-icon { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(30, 154, 238, .5); display: grid; place-items: center; color: var(--blue); font-size: 28px; }
.join-box h3 { margin: 0 0 7px; font-size: 14px; text-transform: uppercase; }
.join-box p { margin: 0; color: #a0afba; font-size: 12px; line-height: 1.55; }
.join-actions { display: grid; gap: 9px; }
.join-actions .btn { width: 100%; min-height: 42px; }

.site-footer { border-top: 1px solid rgba(66, 151, 209, .12); padding: 28px 0; background: #02060a; }
.footer-grid { display: grid; grid-template-columns: 300px 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 38px; }
.footer-brand strong { letter-spacing: .1em; font-size: 15px; }
.footer-brand span { display: block; color: var(--blue); font-size: 9px; letter-spacing: .25em; margin-top: 3px; }
.footer-copy { margin-top: 10px; color: #6f8290; font-size: 10px; }
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: #aab7c0; font-size: 10px; text-transform: uppercase; }
.footer-links a:hover { color: var(--blue); }
.socials { display: flex; gap: 14px; color: #7d8e9a; }
.socials a { width: 30px; height: 30px; border: 1px solid rgba(68, 147, 202, .16); border-radius: 5px; display: grid; place-items: center; font-size: 11px; }
.socials a:hover { color: #fff; border-color: rgba(49, 166, 243, .45); }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 360px; padding: 14px 16px; border: 1px solid rgba(53, 164, 235, .38); background: rgba(4, 13, 20, .97); border-radius: 7px; color: #dfeaf1; font-size: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.3); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
    .brand { min-width: auto; }
    .primary-nav { gap: 18px; }
    .primary-nav a { font-size: 11px; }
    .content-grid { grid-template-columns: 1fr 1fr; }
    .join-card { grid-column: 1 / -1; }
    .join-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
    .join-top { margin: 0; }
    .status-bar { grid-template-columns: repeat(4, 1fr); }
    .status-action { grid-column: 1 / -1; border-top: 1px solid rgba(73,145,194,.12); }
}

@media (max-width: 930px) {
    :root { --header-h: 64px; }
    .container { width: min(calc(100% - 30px), var(--max)); }
    .menu-button { display: inline-grid; place-items: center; }
    .primary-nav { position: fixed; top: var(--header-h); left: 0; right: 0; padding: 14px 20px 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(2,7,12,.99); border-bottom: 1px solid var(--line); }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 14px 6px; border-bottom: 1px solid rgba(80,148,194,.1); }
    .primary-nav a.active::after { display: none; }
    .header-actions .btn-outline { display: none; }
    .brand { flex: 1; }
    .hero-inner { min-height: 500px; padding-top: 58px; }
    .hero::after { background: linear-gradient(90deg, rgba(1,5,9,.97), rgba(1,5,9,.78) 54%, rgba(1,5,9,.5)); }
    .welcome-panel { grid-template-columns: 1fr; }
    .welcome-copy { border-right: 0; border-bottom: 1px solid rgba(66,151,209,.14); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .feature:last-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand, .socials { justify-content: center; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 22px), var(--max)); }
    .brand-wordmark strong { font-size: 15px; }
    .brand-wordmark span { font-size: 8px; }
    .header-actions .btn-primary { display: none; }
    .hero { min-height: 560px; }
    .hero-inner { min-height: 560px; align-items: flex-end; padding: 60px 0 118px; }
    .hero::before { background-position: 63% center; }
    .hero::after { background: linear-gradient(180deg, rgba(1,5,9,.2) 0%, rgba(1,5,9,.58) 38%, rgba(1,5,9,.97) 78%); }
    .hero h1 { font-size: clamp(39px, 12vw, 58px); }
    .hero p { font-size: 14px; }
    .hero-cta { display: grid; grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .status-wrap { margin-top: -74px; }
    .status-bar { grid-template-columns: 1fr 1fr; }
    .status-item { padding: 18px 17px; }
    .status-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(73,145,194,.12); }
    .status-item:nth-child(4) { border-top: 1px solid rgba(73,145,194,.12); }
    .status-action { grid-column: 1 / -1; }
    main { padding-top: 11px; }
    .features { grid-template-columns: 1fr; }
    .feature:last-child { grid-column: auto; }
    .content-grid { grid-template-columns: 1fr; }
    .join-card { grid-column: auto; }
    .news-item, .stream-item { grid-template-columns: 112px 1fr; }
    .thumb { width: 112px; }
    .join-box { display: block; }
    .join-top { margin-bottom: 18px; }
    .footer-links { gap: 18px; }
}
