:root {
    --brand: #FF4500;
    --brand-hover: #e63e00;
    --brand-soft: rgba(255, 69, 0, 0.08);

    --bg: #ffffff;
    --bg-panel: #ffffff;
    --bg-hover: #ebebeb;
    --border: #e0e0e0;
    --border-dark: #d1d1d1;
    --text: #242424;
    --text-light: #616161;
    --text-muted: #8a8a8a;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-bg-solid: rgba(255, 255, 255, 0.97);
    --mask-rgb: 255, 255, 255;
    color-scheme: light;
    accent-color: var(--brand);
    --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --radius: 4px;
    --radius-lg: 8px;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);
    --transition: all 0.15s cubic-bezier(0.33, 0, 0.67, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #141414;
    --bg-panel: #1f1f1f;
    --bg-hover: #2b2b2b;
    --border: #3d3d3d;
    --border-dark: #4a4a4a;
    --text: #f0f0f0;
    --text-light: #b3b3b3;
    --text-muted: #8a8a8a;
    --brand-soft: rgba(255, 69, 0, 0.15);
    --nav-bg: rgba(20, 20, 20, 0.72);
    --nav-bg-solid: rgba(20, 20, 20, 0.97);
    --mask-rgb: 20, 20, 20;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        color-scheme: dark;
        --bg: #141414;
        --bg-panel: #1f1f1f;
        --bg-hover: #2b2b2b;
        --border: #3d3d3d;
        --border-dark: #4a4a4a;
        --text: #f0f0f0;
        --text-light: #b3b3b3;
        --text-muted: #8a8a8a;
        --brand-soft: rgba(255, 69, 0, 0.15);
        --nav-bg: rgba(20, 20, 20, 0.72);
        --nav-bg-solid: rgba(20, 20, 20, 0.97);
        --mask-rgb: 20, 20, 20;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.4);
    }
}

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

body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-hover);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);

    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.logo-img.logo-dark {
    display: none;
}

html[data-theme="dark"] .logo-img.logo-light {
    display: none;
}

html[data-theme="dark"] .logo-img.logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .logo-img.logo-light {
        display: none;
    }

    html[data-theme="auto"] .logo-img.logo-dark {
        display: block;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: var(--text);
    padding: 6px 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    padding: 9px 15px;
    color: var(--text-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.92em;
}

.nav-menu a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-menu a.active {
    color: var(--brand);
    background: var(--brand-soft);
}

.nav-menu a i {
    font-size: 0.9em;
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-chevron {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    z-index: 1100;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease 0.12s, transform 0.18s ease 0.12s, visibility 0.18s 0.12s;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

@media (hover: hover) {
    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text-light);
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.dropdown-menu a i {
    color: var(--brand);
    width: 16px;
    text-align: center;
}

.theme-label {
    display: none;
}

@media (max-width: 768px) {
    .theme-label {
        display: inline;
    }
}

.dropdown-menu.dropdown-right {
    left: auto;
    right: 0;
}

.dropdown-menu a.theme-active {
    color: var(--brand);
    background: var(--brand-soft);
}

#themeTrigger i {
    color: var(--brand);
}

.hero {
    position: relative;
    padding: 72px 0 56px;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 58% 52% at 50% 30%, rgba(var(--mask-rgb), 0.9) 20%, rgba(var(--mask-rgb), 0) 75%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-family: 'Inter', inherit;
    font-size: 2.6em;
    font-weight: 600;
    letter-spacing: normal;
    margin-bottom: 16px;
}

.hero h1 .accent {
    color: var(--brand);
}

.hero .subtitle {
    color: var(--text-light);
    font-size: 1.1em;
    margin: 0 auto 28px;
}

@media (min-width: 901px) {
    .hero .subtitle {
        white-space: nowrap;
    }
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {

    transform: none;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-panel);
    color: var(--text);
    border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 38px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat .num {
    font-family: var(--mono);
    font-size: 1.45em;
    font-weight: 600;
    color: var(--text);
}

.stat .num span {
    color: var(--brand);
}

.stat .num i {
    font-size: 0.6em;
    vertical-align: 2px;
}

.stat .label {
    font-size: 0.78em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section {
    margin: 36px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-head h2 i {
    color: var(--brand);
    font-size: 0.85em;
}

.section-head .view-all {
    font-size: 0.85em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-head .view-all i {
    transition: transform 0.2s ease;
    font-size: 0.85em;
}

.section-head .view-all:hover i {
    transform: translateX(3px);
}

.feeds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
    align-items: stretch;
}

.feeds-grid .section {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.feed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: space-between;
}

.feed-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 16px;
    transition: var(--transition);
    min-height: 90px;
}

.feed-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow);
    background: var(--bg-hover);
}

.feed-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-thumb i {
    color: var(--text-muted);
    font-size: 1.1em;
}

.feed-thumb.logo-chip {
    background: #fff;
    padding: 6px;
}

.feed-thumb.logo-chip img {
    object-fit: contain;
}

.feed-thumb.monogram {
    background: linear-gradient(135deg, var(--brand), #ff7a3c);
    color: #fff;
    font-weight: 700;
    font-size: 1.25em;
    font-family: var(--mono);
}

.feed-body {
    min-width: 0;
}

.feed-body .title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.92em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.feed-card:hover .title {
    color: var(--brand);
}

.feed-body .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: 4px;
}

.feed-body .meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feed-body .meta i {
    font-size: 0.9em;
    color: var(--brand);
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.feed-card:hover .meta i {
    opacity: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 0.95em;
    font-weight: 600;
    padding: 1px 9px;
    border-radius: 100px;
}

.feed-empty {
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    text-align: center;
    background: var(--bg-panel);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius);
}

.friends-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.friends-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 22px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.friends-logos a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 69, 0, 0.4);
}

.friends-logos img {
    max-height: 34px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.contact-section p {
    color: var(--text-light);
    font-size: 0.95em;
}

.contact-section a.mail {
    font-weight: 600;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
    background: var(--bg-panel);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82em;
    color: var(--text-muted);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 2000;
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner p {
    font-size: 0.88em;
    color: var(--text-light);
}

.cookie-banner p i {
    color: var(--brand);
    margin-right: 6px;
}

.cookie-banner .btn {
    padding: 9px 24px;
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 44px;
    height: 44px;

    border-radius: var(--radius-lg);
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
    z-index: 1500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: var(--brand-hover);
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 48px 0 42px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg-solid);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--brand);
        border-radius: 0;
        margin: 0 0 0 16px;
        opacity: 1;
        transform: none;
        transition: none;
        visibility: hidden;
        height: 0;
        overflow: hidden;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item-dropdown.open .dropdown-menu {
        visibility: visible;
        height: auto;
    }

    .nav-item-dropdown.open .dropdown-chevron {
        transform: rotate(180deg);
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 12px;
        justify-items: center;
        text-align: center;
    }

    .feeds-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: left;
    }

    .cookie-banner .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 1.7em;
    }
}
