:root {
    --bg-main: #05070b;
    --bg-card: #10141f;
    --bg-header: #090d14;
    --accent: #00c853;
    --accent-soft: #00c8531a;
    --text-main: #f5f7ff;
    --text-muted: #9ba3c1;
    --border-soft: #23293a;
    --danger: #ff5252;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #182438 0, #05070b 60%);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(to right, #05070bcc, #05070bfa);
    border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #00c853);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff22, 0 0 22px #00c85366;
    font-size: 0.9rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 2px;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: linear-gradient(90deg, #00c85322, transparent);
    cursor: pointer;
    white-space: nowrap;
}

.nav-cta:hover {
    background: linear-gradient(90deg, #00c85333, transparent);
}

.burger {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #ffffff22;
    background: #05070b;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.burger-lines {
    width: 16px;
    height: 12px;
    position: relative;
}

.burger-lines span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 5px; }
.burger-lines span:nth-child(3) { top: 10px; }

.burger.open .burger-lines span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.burger.open .burger-lines span:nth-child(2) {
    opacity: 0;
}

.burger.open .burger-lines span:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
}

.nav-mobile {
    display: none;
    border-top: 1px solid var(--border-soft);
    background: #05070b;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1rem 1rem;
}

.nav-mobile a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-mobile a.active {
    color: var(--accent);
}

main {
    flex: 1;
}

.page-hero {
    max-width: 1120px;
    margin: 1.5rem auto 0;
    padding: 1.5rem 1rem 0.5rem;
}

.page-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

h1 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin: 0 0 0.75rem;
}

.page-subtitle {
    max-width: 640px;
    font-size: 0.98rem;
    color: var(--text-muted);
}

.page-layout {
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.2fr);
    gap: 1.75rem;
}

.content-card {
    background: radial-gradient(circle at top left, #1a273b, #10141f 60%);
    border-radius: 18px;
    border: 1px solid #ffffff0f;
    box-shadow: 0 18px 45px #000000d0;
    padding: 1.5rem 1.4rem 1.7rem;
}

.content-placeholder {
    border-radius: 12px;
    border: 1px dashed var(--border-soft);
    padding: 1.25rem 1rem 1.5rem;
    background: #05070b66;
}

.content-placeholder h2 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.content-placeholder p {
    margin: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.content-placeholder .hint {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: #7f8ab2;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: #05070b99;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 1rem 1rem 1.1rem;
}

.sidebar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.sidebar-list li + li {
    margin-top: 0.25rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid #ffffff1a;
    color: var(--text-muted);
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.sidebar-ranking {
    background: radial-gradient(circle at top, #00c85322, #05070bff 60%);
    border-color: #00c85355;
}

.sidebar-ranking h3 {
    margin-top: 0;
    font-size: 0.95rem;
}

.sidebar-ranking p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(120deg, #00c853, #00e676);
    color: #021107;
    font-weight: 600;
    box-shadow: 0 0 18px #00c85366;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid #00c85355;
}

/* Corner CTA */
.cta-corner {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 60;
    max-width: 280px;
    background: #05070fcc;
    border-radius: 14px;
    border: 1px solid #00c85355;
    box-shadow: 0 18px 40px #000000e6;
    padding: 0.75rem 0.85rem 0.85rem;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    backdrop-filter: blur(14px);
}

.cta-pip {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #00c85366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: radial-gradient(circle at 30% 20%, #ffffff, #00c853dd);
}

.cta-body {
    flex: 1;
}

.cta-title {
    font-size: 0.86rem;
    margin: 0 0 0.25rem;
}

.cta-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
}

.cta-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cta-close {
    border: none;
    background: transparent;
    color: #7f8ab2;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.1rem;
}

.cta-close:hover {
    color: var(--text-main);
}

footer {
    border-top: 1px solid var(--border-soft);
    padding: 1.2rem 1rem 1.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-corner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

@media (max-width: 720px) {
    nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .page-hero {
        padding-top: 1.1rem;
    }
}
