:root {
    --accent: #00ffcc;
    --accent-soft: #00ffcc;
}

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

body {
    background: #1d1c1c;
    color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

site-header,
site-footer {
    display: block;
}

main {
    flex: 1;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.navbar {
    width: 90%;
    margin: auto;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 30px;
}

.logo {
    color: #00ffcc;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: .3s;
}

.nav-links a:hover {
    color: #00ffcc;
}

.nav-links a.active {
    color: #00ffcc;
    border-bottom-color: #00ffcc;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 48px;
    color: #00ffcc;
}

.hero p {
    color: #b0b0b0;
    margin: 15px 0 25px;
}

.hero .button {
    display: inline-block;
    padding: 12px 25px;
    background: #00ffcc;
    color: black;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.hero .button:hover {
    background: #00d4aa;
}

.cards-section {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

.cards-section h2 {
    text-align: center;
    color: #00ffcc;
    margin-bottom: 35px;
}

.cards {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 30px;
}

.card {
    background: #1a1f2b;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
    transition: .3s;
}

.card:hover {
    background: #212839;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.card a {
    color: #66b3ff;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.networking {
    border-top: 5px solid #38bdf8;
}

.os {
    border-top: 5px solid #22c55e;
}

.defense {
    border-top: 5px solid #c084fc;
}

.offense {
    border-top: 5px solid #ef4444;
}

.tools {
    border-top: 5px solid #f59e0b;
}

.roadmap {
    width: 90%;
    max-width: 650px;
    margin: 70px auto;
}

.roadmap h2 {
    text-align: center;
    color: #00ffcc;
    margin-bottom: 30px;
}

.roadmap-list {
    position: relative;
    padding-left: 35px;
}

.roadmap-list::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: #00ffcc;
}

.step {
    position: relative;
    background: #1a1f2b;
    border-radius: 8px;
    border: 1px solid #333;
    padding: 15px 20px;
    margin-bottom: 18px;
}

.step span {
    color: #00ffcc;
    font-weight: bold;
    margin-right: 10px;
}

.step::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 18px;
    width: 14px;
    height: 14px;
    background: #00ffcc;
    border-radius: 50%;
}

.page {
    width: 80%;
    max-width: 1000px;
    margin: 20px auto;
}

.page section {
    background-color: #1f1f1f;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.page h2 {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.page h3 {
    color: var(--accent-soft);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.page ul {
    padding-left: 20px;
}

.page li {
    color: #e0e0e0;
    margin-bottom: 8px;
}

.page a {
    color: #66b3ff;
    text-decoration: none;
}

.page a:hover {
    text-decoration: underline;
}

.page code {
    background-color: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

topic-switcher {
    display: block;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 0;
    background: #1d1c1c;
}

.page .switcher {
    position: relative;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.page .switcher a {
    flex: 0 0 auto;
    padding: 8px 18px;
    border: 1px solid #444;
    border-radius: 999px;
    background: #1f1f1f;
    color: white;
    transition: .3s;
}

.page .switcher a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.page .switcher a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: bold;
}

footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    background: #111827;
    border-top: 1px solid #333;
    color: #999;
}

@media (max-width: 700px) {
    .navbar {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 10px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .page {
        width: 92%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .nav-links a,
    .page .switcher a {
        transition: none;
    }
}
