:root {
    --bg: #050b14;
    --bg-2: #091527;
    --bg-3: #0d203d;
    --surface: rgba(255, 255, 255, 0.07);
    --surface-strong: rgba(7, 17, 33, 0.78);
    --line: rgba(255, 255, 255, 0.12);
    --text: #eef4ff;
    --muted: #a9bad7;
    --blue: #2e7bff;
    --blue-2: #5dc7ff;
    --gold: #d4af37;
    --gold-2: #f0cb59;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[data-main-navbar] {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dark [data-main-navbar] {
    border-bottom-color: rgba(30, 41, 59, 1);
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

[data-main-navbar] > div:first-child,
[data-courses-navbar] > div:first-child {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

[data-main-navbar] > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.4rem;
}

[data-main-navbar] > div:first-child > a:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.625rem;
}

[data-main-navbar] > div:first-child > a:first-child img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(209, 250, 229, 1);
    background: #ffffff;
    object-fit: contain;
    padding: 0.18rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.dark [data-main-navbar] > div:first-child > a:first-child img {
    border-color: rgba(30, 41, 59, 1);
    background: rgba(15, 23, 42, 0.9);
}

[data-main-navbar] > div:first-child > a:first-child > div {
    min-width: 0;
}

[data-main-navbar] nav,
[data-main-navbar] .ml-auto.hidden.min-w-\[240px\].flex-1.items-center.justify-end.lg\:flex,
[data-main-navbar] .hidden.items-center.gap-2.lg\:flex {
    display: none;
}

[data-main-navbar] nav > div[data-dropdown],
[data-main-navbar] .group.relative:last-child {
    position: relative;
}

[data-main-navbar] [data-dropdown-trigger] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 0.375rem 0.875rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

[data-main-navbar] [data-dropdown-trigger]:hover {
    background: rgba(241, 245, 249, 1);
    color: #0f172a;
}

.dark [data-main-navbar] [data-dropdown-trigger] {
    color: #e2e8f0;
}

.dark [data-main-navbar] [data-dropdown-trigger]:hover {
    background: rgba(30, 41, 59, 1);
    color: #ffffff;
}

[data-main-navbar] [data-dropdown-menu] {
    position: absolute;
    left: 0;
    top: calc(100% + 0.75rem);
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 540px;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dark [data-main-navbar] [data-dropdown-menu] {
    border-color: rgba(30, 41, 59, 1);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

[data-main-navbar] [data-dropdown-menu] a {
    display: block;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.85);
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

[data-main-navbar] [data-dropdown-menu] a:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 1);
    background: rgba(239, 246, 255, 1);
}

.dark [data-main-navbar] [data-dropdown-menu] a {
    border-color: rgba(30, 41, 59, 1);
    background: rgba(30, 41, 59, 0.82);
}

.dark [data-main-navbar] [data-dropdown-menu] a:hover {
    border-color: rgba(59, 130, 246, 1);
    background: rgba(30, 41, 59, 1);
}

[data-main-navbar] [data-dropdown][data-open="true"] [data-dropdown-menu],
[data-main-navbar] [data-dropdown]:hover [data-dropdown-menu] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

[data-main-navbar] [aria-label="Notifications"],
[data-main-navbar] [data-theme-toggle],
[data-main-navbar] [data-mobile-menu-button] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
}

.dark [data-main-navbar] [aria-label="Notifications"],
.dark [data-main-navbar] [data-theme-toggle],
.dark [data-main-navbar] [data-mobile-menu-button] {
    border-color: rgba(51, 65, 85, 1);
    background: rgba(15, 23, 42, 1);
    color: #ffffff;
}

[data-main-navbar] .group.relative:last-child [data-dropdown-menu] {
    left: auto;
    right: 0;
    width: 16rem;
    grid-template-columns: 1fr;
    padding: 0.75rem;
}

[data-main-navbar] [data-mobile-menu-button] {
    flex-shrink: 0;
}

[data-main-navbar] [data-mobile-search] {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

[data-main-navbar] [data-mobile-search] input {
    width: 100%;
}

[data-main-navbar] [data-navbar-search] input {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    color: #0f172a;
}

[data-main-navbar] [data-navbar-search] input::placeholder {
    color: #94a3b8;
}

[data-main-navbar] [data-navbar-search] span,
[data-main-navbar] [data-navbar-search] svg {
    color: #475569;
}

.dark [data-main-navbar] [data-navbar-search] input {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(51, 65, 85, 1);
    color: #ffffff;
}

.dark [data-main-navbar] [data-navbar-search] input::placeholder {
    color: #64748b;
}

.dark [data-main-navbar] [data-navbar-search] span,
.dark [data-main-navbar] [data-navbar-search] svg {
    color: #94a3b8;
}

[data-mobile-menu] {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(226, 232, 240, 1);
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.dark [data-mobile-menu] {
    border-top-color: rgba(30, 41, 59, 1);
    background: rgba(2, 6, 23, 0.95);
}

[data-mobile-menu] a {
    display: block;
}

[data-courses-navbar] {
    position: sticky;
    top: var(--kb-main-nav-height, 81px);
    z-index: 40;
    border-bottom: 1px solid rgba(30, 41, 59, 1);
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    backdrop-filter: blur(18px);
}

[data-courses-navbar] > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.4rem;
}

[data-courses-navbar] button[data-scroll-courses-left],
[data-courses-navbar] button[data-scroll-courses-right],
[data-courses-navbar] > div:first-child > div:nth-child(2),
[data-courses-scroll] > div > span {
    display: none;
}

[data-courses-navbar] > div:first-child > div:nth-child(3) {
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

[data-courses-navbar] > div:first-child > div:nth-child(3)::-webkit-scrollbar {
    display: none;
}

[data-courses-scroll] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: max-content;
    padding-right: 1rem;
}

[data-courses-scroll] > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: max-content;
}

[data-course-pill] {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
    padding: 0.375rem 0.75rem;
    color: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-course-pill] span:first-child {
    display: grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0;
}

[data-course-pill]:hover {
    border-color: rgba(100, 116, 139, 1);
    background: rgba(30, 41, 59, 0.92);
}

[data-course-pill][class*="bg-white"] {
    border-color: rgba(255, 255, 255, 0.3);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(46, 123, 255, 0.16), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(93, 199, 255, 0.16), transparent 18%),
        linear-gradient(180deg, #050b14, #07101d 32%, #0b1930 68%, #091323);
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1180px, calc(100% - 6rem));
    margin: 0 auto;
}

.kb-home-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero,
.tracks,
.playground,
.roadmap-section,
.admin-link {
    position: relative;
}

.hero {
    overflow: hidden;
    padding: 6rem 0 4.5rem;
    background:
        linear-gradient(135deg, rgba(5, 11, 20, 0.98), rgba(8, 20, 39, 0.92) 52%, rgba(7, 27, 54, 0.95)),
        radial-gradient(circle at 20% 20%, rgba(93, 199, 255, 0.12), transparent 22%),
        radial-gradient(circle at 84% 24%, rgba(46, 123, 255, 0.16), transparent 24%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -2rem;
    height: 9rem;
    background: linear-gradient(180deg, transparent, rgba(5, 11, 20, 0.92));
    pointer-events: none;
}

.hero-noise,
.hero-orb {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(18px);
}

.hero-noise {
    inset: 0;
    border-radius: 0;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.03), transparent 30%, rgba(93, 199, 255, 0.03)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 36px);
    opacity: 0.45;
}

.hero-orb-a {
    top: 4rem;
    right: 8%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(93, 199, 255, 0.24), transparent 60%);
}

.hero-orb-b {
    bottom: 3rem;
    left: -5rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(46, 123, 255, 0.18), transparent 62%);
}

.hero-grid,
.playground-grid,
.admin-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.03fr;
    gap: 2.35rem;
    align-items: center;
}

.hero-copy {
    padding: 1rem 0;
}

.hero-kicker {
    margin: 0 0 1rem;
    color: #c9d9f4;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.hero-title,
.section-intro h2,
.playground-copy h2,
.admin-shell h2 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-title {
    margin: 0;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: transparent;
    background:
        linear-gradient(180deg, #ffffff 5%, #bfe2ff 30%, #59b7ff 55%, #1f70ff 78%, #b88d1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 28px rgba(93, 199, 255, 0.24),
        0 0 70px rgba(46, 123, 255, 0.18);
}

.hero-subtitle,
.playground-copy p,
.admin-shell p,
.track-card p {
    color: var(--muted);
    line-height: 1.85;
}

.hero-subtitle {
    max-width: 34rem;
    margin: 1rem 0 0;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.98rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: linear-gradient(135deg, #1767ff, #4db7ff);
    color: #eff7ff;
    box-shadow: 0 18px 36px rgba(24, 95, 255, 0.28);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(240, 203, 89, 0.3));
    color: #fff0ba;
    border: 1px solid rgba(240, 203, 89, 0.32);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e8f1ff;
}

.btn-editor {
    background: linear-gradient(135deg, #1c6dff, #0ca7ff);
    color: white;
    box-shadow: 0 16px 30px rgba(20, 113, 255, 0.22);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 36rem;
    margin-top: 2.1rem;
}

.hero-stat {
    padding: 1rem 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.hero-stat strong {
    display: block;
    font-size: 1.2rem;
    color: #ffffff;
}

.hero-stat span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-card,
.track-card,
.code-window,
.admin-shell {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-editor {
    border-radius: 32px;
    padding: 1.3rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(7, 17, 33, 0.6);
    backdrop-filter: blur(22px);
}

.editor-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editor-pill,
.status,
.editor-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.editor-pill {
    padding: 0.6rem 0.95rem;
    color: #b8e4ff;
    background: rgba(93, 199, 255, 0.12);
    border: 1px solid rgba(93, 199, 255, 0.18);
}

.status {
    padding: 0.55rem 0.85rem;
    color: #091323;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.editor-shell {
    border-radius: 26px;
    overflow: hidden;
    background: rgba(6, 14, 27, 0.92);
    border: 1px solid rgba(93, 199, 255, 0.14);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.window-dots span,
.window-bar span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.window-dots span:nth-child(1),
.window-bar span:nth-child(1) { background: #ff6b6b; }
.window-dots span:nth-child(2),
.window-bar span:nth-child(2) { background: #f4c84f; }
.window-dots span:nth-child(3),
.window-bar span:nth-child(3) { background: #3fd08c; }

.editor-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.tab {
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    color: #9ab1d3;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    color: #edf5ff;
    background: rgba(46, 123, 255, 0.18);
    border: 1px solid rgba(93, 199, 255, 0.2);
}

.editor-body {
    display: grid;
    grid-template-columns: 56px 1fr;
    min-height: 24rem;
}

.editor-lines {
    display: grid;
    gap: 0.28rem;
    align-content: start;
    padding: 1.2rem 0.85rem 1.2rem 1rem;
    color: #58729b;
    font-size: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.editor-code {
    margin: 0;
    padding: 1.2rem 1.25rem 1.5rem;
    overflow: auto;
    color: #edf4ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 1rem;
    line-height: 1.9;
}

.code-blue { color: #8fbfff; }
.code-red { color: #ff89b5; }
.code-gold { color: #ffd97a; }
.code-green { color: #9fe0ac; }

.typing-cursor {
    display: inline-block;
    width: 0.6ch;
    height: 1.15em;
    margin-left: 0.2rem;
    vertical-align: -0.16em;
    background: #60c7ff;
    box-shadow: 0 0 16px rgba(96, 199, 255, 0.7);
    animation: blink 1.1s steps(1) infinite;
}

.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.editor-badge {
    padding: 0.55rem 0.85rem;
    color: #8cb2dc;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
    padding: 0.65rem 1rem;
    color: #f4d97d;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.24);
}

.tracks,
.playground,
.roadmap-section,
.admin-link {
    padding: 4.5rem 0;
}

.tracks {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(11, 23, 42, 0.98), rgba(14, 32, 58, 0.96)),
        radial-gradient(circle at 18% 18%, rgba(93, 199, 255, 0.1), transparent 24%),
        radial-gradient(circle at 85% 76%, rgba(46, 123, 255, 0.12), transparent 22%);
}

.section-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    pointer-events: none;
    opacity: 0.7;
}

.section-orb-left {
    top: 2rem;
    left: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(46, 123, 255, 0.16), transparent 65%);
}

.section-orb-right {
    right: -5rem;
    bottom: 1rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(93, 199, 255, 0.14), transparent 68%);
}

.tracks-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2.2rem;
    align-items: center;
}

.section-intro {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.tracks .section-intro {
    margin-bottom: 0;
}

.tracks-title {
    margin: 1rem 0 0.85rem;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    color: transparent;
    background: linear-gradient(180deg, #f9fcff 0%, #bfe4ff 34%, #67c5ff 68%, #2375ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 28px rgba(93, 199, 255, 0.2);
}

.tracks-copy {
    max-width: 32rem;
    color: #b9cae4;
    line-height: 1.85;
}

.tracks-actions {
    margin-top: 1.8rem;
}

.tracks-preview {
    position: relative;
}

.track-showcase {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(11, 24, 43, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 70px rgba(3, 10, 20, 0.38);
}

.track-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.track-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.56rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d8edff;
    background: rgba(46, 123, 255, 0.14);
    border: 1px solid rgba(93, 199, 255, 0.18);
}

.style-preview {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
}

.style-browser,
.style-code {
    min-height: 22rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(6, 14, 27, 0.82);
    overflow: hidden;
}

.style-browser {
    padding: 0.95rem;
}

.style-preview-card {
    margin-top: 0.85rem;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(19, 38, 68, 0.98), rgba(11, 25, 49, 0.96)),
        linear-gradient(180deg, #132644, #0b1931);
    border: 1px solid rgba(93, 199, 255, 0.12);
}

.preview-navbar {
    height: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.preview-hero {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 0.9rem;
    padding: 1.1rem;
}

.preview-copy {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.preview-copy span,
.preview-panel {
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(93,199,255,0.08));
}

.preview-copy span:nth-child(1) {
    height: 1rem;
    width: 34%;
}

.preview-copy span:nth-child(2) {
    height: 3.7rem;
    width: 88%;
    border-radius: 18px;
}

.preview-copy span:nth-child(3) {
    height: 2.4rem;
    width: 58%;
}

.preview-panel {
    min-height: 10rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 18%, rgba(93, 199, 255, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(93,199,255,0.06));
    border: 1px solid rgba(93, 199, 255, 0.14);
}

.style-code {
    margin: 0;
    padding: 1.15rem 1.2rem;
    color: #edf4ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.9;
}

.track-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.track-metric {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-metric strong {
    display: block;
    color: #eef7ff;
    font-size: 1rem;
}

.track-metric span {
    display: block;
    margin-top: 0.35rem;
    color: #a9bddc;
    font-size: 0.9rem;
}

.section-intro h2,
.playground-copy h2,
.admin-shell h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 1rem 0 0.8rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.track-card {
    padding: 1.6rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.track-card:hover {
    transform: translateY(-6px);
    border-color: rgba(93, 199, 255, 0.34);
    box-shadow: 0 28px 70px rgba(8, 18, 34, 0.48);
}

.track-card h3 {
    margin: 0 0 0.6rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
}

.playground-grid {
    grid-template-columns: 0.96fr 1.04fr;
}

.playground {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 18, 34, 0.98), rgba(9, 24, 45, 0.96)),
        radial-gradient(circle at 18% 22%, rgba(102, 164, 255, 0.1), transparent 24%),
        radial-gradient(circle at 84% 70%, rgba(255, 202, 87, 0.08), transparent 20%);
}

.playground-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(28px);
    opacity: 0.68;
}

.playground-orb-left {
    top: 3rem;
    left: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(64, 133, 255, 0.15), transparent 66%);
}

.playground-orb-right {
    right: -3rem;
    bottom: 1rem;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle, rgba(255, 202, 87, 0.1), transparent 68%);
}

.playground-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: transparent;
    background: linear-gradient(180deg, #fffdf0 0%, #ffe08a 18%, #bfe0ff 55%, #3d8fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 24px rgba(255, 202, 87, 0.14), 0 0 42px rgba(93, 199, 255, 0.2);
}

.playground-text {
    max-width: 34rem;
}

.js-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.7rem;
}

.js-point {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.js-point strong {
    display: block;
    font-size: 1rem;
    color: #fff3c4;
}

.js-point span {
    display: block;
    margin-top: 0.35rem;
    color: #afc3e1;
    font-size: 0.92rem;
}

.code-window {
    border-radius: 28px;
    overflow: hidden;
    background: var(--surface-strong);
}

.js-window {
    padding: 1.15rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
        rgba(6, 15, 29, 0.82);
}

.js-console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.js-stage {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1rem;
}

.js-preview-card,
.js-code {
    min-height: 21rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.js-preview-card {
    padding: 1rem;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 202, 87, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(21, 43, 78, 0.98), rgba(9, 24, 46, 0.98));
}

.js-preview-screen {
    display: grid;
    place-items: center;
    text-align: center;
    height: 100%;
    border-radius: 20px;
    padding: 1.5rem;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(93,199,255,0.03)),
        rgba(7, 19, 37, 0.8);
    border: 1px solid rgba(93, 199, 255, 0.14);
}

.js-preview-screen h3 {
    margin: 0.9rem 0 0.45rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.js-preview-screen p {
    margin: 0;
    color: #aac0e0;
    line-height: 1.7;
    max-width: 15rem;
}

.pulse-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd56f, #5dc7ff);
    box-shadow: 0 0 0 0 rgba(93, 199, 255, 0.42);
    animation: pulseGlow 2s infinite;
}

.js-mini-controls {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.js-mini-controls span {
    width: 2.8rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(93,199,255,0.1));
}

.js-code {
    margin: 0;
    padding: 1.15rem 1.2rem;
    background: rgba(6, 14, 27, 0.9);
    color: #edf4ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.95;
}

.window-bar {
    display: flex;
    gap: 0.45rem;
    padding: 1rem 1rem 0;
}

.code-window pre {
    margin: 0;
    padding: 1.2rem 1.2rem 1.5rem;
    overflow: auto;
    color: #edf4ff;
}

.admin-shell {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(15, 29, 53, 0.8), rgba(8, 18, 34, 0.86));
}

.roadmap-section {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 15, 29, 0.98), rgba(10, 21, 40, 0.96)),
        radial-gradient(circle at 16% 18%, rgba(93, 199, 255, 0.08), transparent 22%),
        radial-gradient(circle at 86% 78%, rgba(212, 175, 55, 0.08), transparent 18%);
}

.roadmap-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    opacity: 0.72;
}

.roadmap-orb-left {
    top: 6rem;
    left: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(55, 131, 255, 0.16), transparent 66%);
}

.roadmap-orb-right {
    right: -3rem;
    bottom: 3rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 66%);
}

.roadmap-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 2.3rem;
    align-items: start;
}

.roadmap-title {
    margin: 1rem 0 0.85rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.roadmap-text {
    max-width: 33rem;
    color: #b5c7e0;
    line-height: 1.85;
}

.roadmap-board {
    position: relative;
    padding: 1rem 0;
}

.roadmap-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(93, 199, 255, 0.12), rgba(45, 124, 255, 0.92), rgba(212, 175, 55, 0.22));
    overflow: hidden;
}

.roadmap-rail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 26%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(93,199,255,0.15));
    box-shadow: 0 0 32px rgba(93, 199, 255, 0.48);
    animation: railFlow 4.2s ease-in-out infinite;
}

.roadmap-step {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 10.5rem;
    margin: 1rem 0;
}

.roadmap-step::before {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 2.2rem);
    height: 3px;
    background: linear-gradient(90deg, rgba(93,199,255,0.72), rgba(93,199,255,0.08));
    transform: translateY(-50%);
    border-radius: 999px;
}

.roadmap-step-left {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-right: calc(50% + 2.4rem);
}

.roadmap-step-left::before {
    left: calc(50% - 1px);
}

.roadmap-step-right {
    grid-template-columns: 1fr;
    justify-items: end;
    padding-left: calc(50% + 2.4rem);
}

.roadmap-step-right::before {
    right: calc(50% - 1px);
    background: linear-gradient(90deg, rgba(93,199,255,0.08), rgba(93,199,255,0.72));
}

.roadmap-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.35rem;
    height: 1.35rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 0 rgba(93, 199, 255, 0.38);
    animation: nodePulse 2.8s infinite;
    z-index: 2;
}

.node-html { background: linear-gradient(135deg, #6fc3ff, #1c70ff); }
.node-css { background: linear-gradient(135deg, #55e2c5, #2b9dff); animation-delay: 0.3s; }
.node-js { background: linear-gradient(135deg, #ffd56f, #ffb347); animation-delay: 0.6s; }
.node-frameworks { background: linear-gradient(135deg, #9a7cff, #5d7bff); animation-delay: 0.9s; }
.node-tools { background: linear-gradient(135deg, #d9bd60, #65c5ff); animation-delay: 1.2s; }

.roadmap-card {
    width: min(100%, 24rem);
    padding: 1.2rem 1.25rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)),
        rgba(10, 21, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 199, 255, 0.28);
    box-shadow: 0 26px 70px rgba(7, 16, 31, 0.48);
}

.roadmap-card-tag {
    display: inline-flex;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9edcff;
    background: rgba(93, 199, 255, 0.1);
    border: 1px solid rgba(93, 199, 255, 0.15);
}

.roadmap-card h3 {
    margin: 0.9rem 0 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    color: #f0f7ff;
}

.roadmap-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.roadmap-card li {
    position: relative;
    padding-left: 1.05rem;
    color: #b9cae2;
    line-height: 1.65;
}

.roadmap-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #67c5ff, #d4af37);
    box-shadow: 0 0 12px rgba(93, 199, 255, 0.4);
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3rem;
    background:
        linear-gradient(180deg, rgba(8, 14, 26, 0.99), rgba(6, 11, 20, 1)),
        radial-gradient(circle at 20% 10%, rgba(93, 199, 255, 0.08), transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06), transparent 16%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.footer-brand-mark {
    width: 4rem;
    height: 4rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.footer-brand strong {
    display: block;
    font-size: 1.3rem;
    color: #f3f8ff;
}

.footer-brand span {
    display: block;
    margin-top: 0.28rem;
    color: #98afcf;
    line-height: 1.6;
}

.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem 2rem;
    min-width: 0;
}

.footer-quick-links a {
    color: #f0d980;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
    color: #f8fbff;
}

.footer-column a {
    display: block;
    margin: 0.55rem 0;
    color: #d6e2f3;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-column a:hover,
.footer-quick-links a:hover,
.footer-text-link:hover,
.footer-note a:hover {
    color: #6bd0ff;
}

.footer-column a:hover {
    transform: translateX(3px);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1rem;
    margin-top: 2.8rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    height: 2.65rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ecf4ff;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}

.footer-text-link {
    min-width: auto;
}

.footer-note {
    max-width: 56rem;
    margin: 1.9rem auto 0;
    text-align: center;
}

.footer-note p {
    margin: 0.75rem 0;
    color: #aebfd7;
    line-height: 1.8;
}

.footer-note a {
    color: #f0d980;
}

html:not(.dark) {
    --bg: #eef4fb;
    --bg-2: #f8fbff;
    --bg-3: #e7eff9;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(148, 163, 184, 0.22);
    --text: #13233d;
    --muted: #5e7291;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

html:not(.dark) body {
    background:
        radial-gradient(circle at 12% 18%, rgba(46, 123, 255, 0.12), transparent 22%),
        radial-gradient(circle at 82% 12%, rgba(93, 199, 255, 0.12), transparent 18%),
        linear-gradient(180deg, #f8fbff, #eff5fb 32%, #eaf2fb 68%, #f5f9ff);
}

html:not(.dark) .hero {
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(236, 244, 252, 0.95) 52%, rgba(227, 238, 251, 0.96)),
        radial-gradient(circle at 20% 20%, rgba(93, 199, 255, 0.12), transparent 22%),
        radial-gradient(circle at 84% 24%, rgba(46, 123, 255, 0.12), transparent 24%);
}

html:not(.dark) .hero::after {
    background: linear-gradient(180deg, transparent, rgba(239, 245, 252, 0.96));
}

html:not(.dark) .tracks {
    background:
        linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(233, 242, 252, 0.96)),
        radial-gradient(circle at 18% 18%, rgba(93, 199, 255, 0.1), transparent 24%),
        radial-gradient(circle at 85% 76%, rgba(46, 123, 255, 0.1), transparent 22%);
}

html:not(.dark) .playground {
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(231, 241, 252, 0.96)),
        radial-gradient(circle at 18% 22%, rgba(102, 164, 255, 0.1), transparent 24%),
        radial-gradient(circle at 84% 70%, rgba(255, 202, 87, 0.08), transparent 20%);
}

html:not(.dark) .roadmap-section {
    background:
        linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(235, 244, 252, 0.96)),
        radial-gradient(circle at 16% 18%, rgba(93, 199, 255, 0.08), transparent 22%),
        radial-gradient(circle at 86% 78%, rgba(212, 175, 55, 0.08), transparent 18%);
}

html:not(.dark) .admin-link {
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(229, 239, 250, 0.96));
}

html:not(.dark) .site-footer {
    background:
        linear-gradient(180deg, rgba(241, 247, 255, 0.99), rgba(232, 241, 250, 1)),
        radial-gradient(circle at 20% 10%, rgba(93, 199, 255, 0.08), transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06), transparent 16%);
    border-top-color: rgba(148, 163, 184, 0.16);
}

html:not(.dark) .hero-kicker,
html:not(.dark) .tracks-copy,
html:not(.dark) .roadmap-text,
html:not(.dark) .footer-brand span,
html:not(.dark) .footer-note p,
html:not(.dark) .footer-column a,
html:not(.dark) .js-preview-screen p,
html:not(.dark) .track-metric span,
html:not(.dark) .js-point span,
html:not(.dark) .roadmap-card li {
    color: #5e7291;
}

html:not(.dark) .hero-stat,
html:not(.dark) .track-metric,
html:not(.dark) .js-point,
html:not(.dark) .track-card,
html:not(.dark) .hero-editor,
html:not(.dark) .track-showcase,
html:not(.dark) .js-window,
html:not(.dark) .admin-shell,
html:not(.dark) .roadmap-card,
html:not(.dark) .footer-brand-mark,
html:not(.dark) .footer-social a {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.88));
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

html:not(.dark) .hero-stat strong,
html:not(.dark) .track-metric strong,
html:not(.dark) .js-point strong,
html:not(.dark) .track-card h3,
html:not(.dark) .roadmap-card h3,
html:not(.dark) .footer-brand strong,
html:not(.dark) .footer-column h3 {
    color: #14233c;
}

html:not(.dark) .editor-shell,
html:not(.dark) .style-browser,
html:not(.dark) .style-code,
html:not(.dark) .js-preview-card,
html:not(.dark) .js-code,
html:not(.dark) .js-preview-screen,
html:not(.dark) .style-preview-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(148, 163, 184, 0.16);
}

html:not(.dark) .editor-toolbar,
html:not(.dark) .editor-footer,
html:not(.dark) .preview-navbar,
html:not(.dark) .editor-lines {
    background: rgba(239, 245, 252, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
}

html:not(.dark) .editor-code,
html:not(.dark) .style-code,
html:not(.dark) .js-code,
html:not(.dark) .code-window pre {
    color: #19304f;
}

html:not(.dark) .editor-lines,
html:not(.dark) .tab,
html:not(.dark) .editor-badge {
    color: #5d7391;
}

html:not(.dark) .tab {
    background: rgba(226, 232, 240, 0.7);
}

html:not(.dark) .tab.active,
html:not(.dark) .track-chip,
html:not(.dark) .editor-pill,
html:not(.dark) .roadmap-card-tag {
    background: rgba(46, 123, 255, 0.1);
    border-color: rgba(46, 123, 255, 0.16);
    color: #2459bc;
}

html:not(.dark) .eyebrow {
    color: #9a6a00;
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.24);
}

html:not(.dark) .btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.24);
    color: #16304f;
}

html:not(.dark) .btn-secondary {
    color: #7f5b00;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(240, 203, 89, 0.22));
    border-color: rgba(212, 175, 55, 0.22);
}

html:not(.dark) .footer-quick-links a,
html:not(.dark) .footer-note a,
html:not(.dark) .footer-text-link {
    color: #9a6a00;
}

html:not(.dark) [data-main-navbar] {
    border-bottom-color: rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    color: #000000;
}

html:not(.dark) [data-main-navbar] a,
html:not(.dark) [data-main-navbar] button,
html:not(.dark) [data-main-navbar] span,
html:not(.dark) [data-main-navbar] svg,
html:not(.dark) [data-main-navbar] input {
    color: #000000;
}

html:not(.dark) [data-main-navbar] > div:first-child > a:first-child > div > div:first-child,
html:not(.dark) [data-main-navbar] [data-dropdown-trigger],
html:not(.dark) [data-main-navbar] [data-dropdown-menu] a,
html:not(.dark) [data-main-navbar] .group.relative:last-child [data-dropdown-menu] a,
html:not(.dark) [data-main-navbar] [data-mobile-menu] a {
    color: #000000;
}

html:not(.dark) [data-main-navbar] > div:first-child > a:first-child > div > div:last-child {
    color: #475569;
}

html:not(.dark) [data-main-navbar] [data-dropdown-trigger]:hover,
html:not(.dark) [data-main-navbar] [data-dropdown-menu] a:hover,
html:not(.dark) [data-main-navbar] [data-mobile-menu] a:hover {
    color: #000000;
}

html:not(.dark) [data-main-navbar] [aria-label="Notifications"],
html:not(.dark) [data-main-navbar] [data-theme-toggle],
html:not(.dark) [data-main-navbar] [data-mobile-menu-button],
html:not(.dark) [data-mobile-menu],
html:not(.dark) [data-main-navbar] [data-dropdown-menu] {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(226, 232, 240, 1);
    color: #000000;
}

html:not(.dark) [data-main-navbar] [data-navbar-search] input {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(226, 232, 240, 1);
    color: #000000;
}

html:not(.dark) [data-main-navbar] [data-navbar-search] input::placeholder {
    color: #64748b;
}

html:not(.dark) [data-main-navbar] [data-navbar-search] span,
html:not(.dark) [data-main-navbar] [data-navbar-search] svg {
    color: #475569;
}

html:not(.dark) body,
html:not(.dark) main,
html:not(.dark) section,
html:not(.dark) article {
    color: #0f172a;
}

html:not(.dark) p,
html:not(.dark) li,
html:not(.dark) dt,
html:not(.dark) dd,
html:not(.dark) small,
html:not(.dark) label {
    color: #334155;
}

html:not(.dark) h1,
html:not(.dark) h2,
html:not(.dark) h3,
html:not(.dark) h4,
html:not(.dark) h5,
html:not(.dark) h6 {
    color: #0f172a;
}

html:not(.dark) [data-courses-navbar] {
    border-bottom-color: rgba(203, 213, 225, 1);
    background: rgba(248, 251, 255, 0.94);
    color: #14233c;
}

html:not(.dark) [data-courses-navbar] button[data-scroll-courses-left],
html:not(.dark) [data-courses-navbar] button[data-scroll-courses-right],
html:not(.dark) [data-courses-navbar] > div:first-child > div:nth-child(2),
html:not(.dark) [data-courses-scroll] > div > span {
    border-color: rgba(203, 213, 225, 1);
    background: rgba(255, 255, 255, 0.92);
    color: #5d7391;
}

html:not(.dark) [data-course-pill] {
    border-color: rgba(203, 213, 225, 1);
    background: rgba(255, 255, 255, 0.94);
    color: #19304f;
}

html:not(.dark) [data-course-pill]:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: rgba(239, 246, 255, 1);
}

html:not(.dark) [data-course-pill][class*="bg-white"] {
    border-color: rgba(212, 175, 55, 0.36);
    background: linear-gradient(135deg, rgba(255, 247, 214, 0.98), rgba(255, 255, 255, 0.98));
    color: #7a5800;
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes blink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(93, 199, 255, 0.4);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 0 0 18px rgba(93, 199, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(93, 199, 255, 0);
    }
}

@keyframes nodePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 199, 255, 0.34);
        transform: translate(-50%, -50%) scale(1);
    }
    65% {
        box-shadow: 0 0 0 20px rgba(93, 199, 255, 0);
        transform: translate(-50%, -50%) scale(1.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(93, 199, 255, 0);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes railFlow {
    0% {
        top: -2%;
        opacity: 0.2;
    }
    18% {
        opacity: 1;
    }
    82% {
        opacity: 1;
    }
    100% {
        top: 76%;
        opacity: 0.15;
    }
}

@media (min-width: 1024px) {
    [data-main-navbar] > div:first-child {
        padding: 0.5rem 2rem;
    }

    [data-main-navbar] nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    [data-main-navbar] .ml-auto.hidden.min-w-\[240px\].flex-1.items-center.justify-end.lg\:flex {
        display: flex;
        min-width: 240px;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
    }

    [data-main-navbar] .hidden.items-center.gap-2.lg\:flex {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    [data-main-navbar] [data-mobile-menu-button],
    [data-mobile-menu],
    [data-main-navbar] [data-mobile-search] {
        display: none;
    }

    [data-courses-navbar] > div:first-child {
        padding: 0.5rem 2rem;
    }

    [data-courses-navbar] button[data-scroll-courses-left],
    [data-courses-navbar] button[data-scroll-courses-right] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        flex-shrink: 0;
        border: 1px solid rgba(51, 65, 85, 1);
        border-radius: 999px;
        background: rgba(30, 41, 59, 1);
        color: #e2e8f0;
    }

    [data-courses-navbar] > div:first-child > div:nth-child(2) {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        border: 1px solid rgba(51, 65, 85, 1);
        border-radius: 999px;
        background: rgba(30, 41, 59, 0.8);
        padding: 0.375rem 0.75rem;
        color: #cbd5e1;
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.24em;
        text-transform: uppercase;
    }

    [data-courses-scroll] > div > span {
        display: inline-flex;
        align-items: center;
        border: 1px solid rgba(51, 65, 85, 1);
        border-radius: 999px;
        background: rgba(30, 41, 59, 0.8);
        padding: 0.25rem 0.625rem;
        color: #94a3b8;
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: 0.26em;
        text-transform: uppercase;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(1120px, calc(100% - 4rem));
    }

    .kb-home-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-grid,
    .tracks-grid,
    .js-stage,
    .roadmap-layout,
    .footer-top,
    .playground-grid,
    .admin-shell,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-quick-links {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-title {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100%, calc(100% - 1.75rem));
    }

    .kb-home-container {
        padding: 0 14px;
    }

    .hero {
        padding-top: 4.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .editor-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .style-preview,
    .track-metrics,
    .js-points,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-brand {
        gap: 1.2rem;
    }

    .site-footer {
        padding: 3.25rem 0 2.5rem;
    }

    .footer-top {
        margin-bottom: 2rem;
    }

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

    .footer-brand-mark {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 18px;
    }

    .footer-quick-links {
        gap: 0.9rem 1rem;
        justify-content: center;
    }

    .footer-quick-links a {
        font-size: 0.84rem;
        letter-spacing: 0.03em;
    }

    .footer-column h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-social a {
        min-width: 2.35rem;
        height: 2.35rem;
        padding: 0 0.8rem;
        font-size: 0.82rem;
    }

    .footer-note {
        margin-top: 1.5rem;
        text-align: center;
    }

    .footer-note p {
        font-size: 0.94rem;
        line-height: 1.75;
    }

    .roadmap-board {
        padding-left: 2.25rem;
    }

    .roadmap-rail {
        left: 1rem;
        transform: none;
    }

    .roadmap-step,
    .roadmap-step-left,
    .roadmap-step-right {
        padding-left: 3.5rem;
        padding-right: 0;
        justify-items: start;
    }

    .roadmap-step::before,
    .roadmap-step-left::before,
    .roadmap-step-right::before {
        left: 1rem;
        right: auto;
        width: 2rem;
        background: linear-gradient(90deg, rgba(93,199,255,0.72), rgba(93,199,255,0.08));
    }

    .roadmap-node {
        left: 1rem;
        transform: translate(-50%, -50%);
    }

    .roadmap-card {
        width: 100%;
    }

    .editor-toolbar,
    .editor-body {
        grid-template-columns: 1fr;
    }

    .editor-lines {
        display: none;
    }

    .editor-tabs {
        justify-content: flex-start;
    }

    .admin-shell {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2.75rem 0 2.2rem;
    }

    .footer-quick-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        gap: 1.4rem;
    }

    .footer-column a {
        margin: 0.42rem 0;
        text-align: center;
    }

    .footer-social {
        gap: 0.6rem 0.75rem;
    }

    .footer-social a {
        min-width: 2.15rem;
        height: 2.15rem;
        padding: 0 0.7rem;
    }
}
