:root {
    --bg: #0a0e13;
    --bg-soft: #0e141b;
    --panel: #111820;
    --panel-hover: #151e28;
    --border: #222c37;

    --text: #edf2f7;
    --muted: #8b98a7;
    --muted-light: #a9b4c0;

    --accent: #6d8cff;
    --accent-hover: #7f9bff;

    --success: #55d68a;

    --radius: 14px;
    --container: 1120px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.65;
}


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


button,
input {
    font: inherit;
}


.container {
    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(10, 14, 19, .86);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}


.nav {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.brand {
    display: flex;
    align-items: center;

    gap: 11px;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
}


.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #527cff,
            #765cff
        );

    color: white;
    font-weight: 800;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;

    margin-left: auto;

    color: var(--muted);
    font-size: 14px;
}


.nav-links a {
    transition: color .2s ease;
}


.nav-links a:hover,
.nav-links a.active {
    color: white;
}


.login-link {
    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    font-size: 13px;

    transition: .2s;
}


.login-link:hover {
    border-color: #3a4858;
    background: var(--panel);
}


.back-link {
    color: var(--muted);
    font-size: 14px;
}


.back-link:hover {
    color: white;
}


/* HERO */

.hero {
    padding: 110px 0 100px;

    border-bottom: 1px solid var(--border);
}


.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;

    align-items: center;

    gap: 80px;
}


.eyebrow,
.section-kicker,
.project-tag,
.note-category {
    display: inline-block;

    color: #7796ff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .13em;
}


.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 12px rgba(85, 214, 138, .65);
}


.hero h1 {
    margin: 0 0 24px;

    font-size: clamp(48px, 6vw, 76px);

    line-height: 1.02;
    letter-spacing: -.055em;
}


.hero-text {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 18px;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--panel);

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s,
        background .2s,
        border-color .2s;
}


.button:hover {
    transform: translateY(-2px);
    border-color: #3a4858;
}


.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}


.button-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}


.button-full {
    width: 100%;
}


/* SERVER PANEL */

.server-panel {
    padding: 27px;

    background:
        linear-gradient(
            145deg,
            #121a23,
            #0e141b
        );

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .25);
}


.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.panel-label {
    color: #697786;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .13em;
}


.panel-title {
    margin-top: 3px;

    font-size: 18px;
    font-weight: 700;
}


.online-badge {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--success);

    font-size: 11px;
}


.online-badge span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--success);
}


.system-row,
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 13px 0;

    border-top: 1px solid var(--border);

    font-size: 13px;
}


.system-row span,
.info-row span {
    color: var(--muted);
}


.system-row strong,
.info-row strong {
    color: #dfe6ee;

    font-weight: 600;
}


/* SECTIONS */

.section {
    padding: 90px 0;

    border-bottom: 1px solid var(--border);
}


.section-muted {
    background: var(--bg-soft);
}


.section-heading {
    max-width: 700px;

    margin-bottom: 40px;
}


.section-heading h2 {
    margin: 8px 0 12px;

    font-size: 36px;

    line-height: 1.15;
    letter-spacing: -.035em;
}


.section-heading p {
    margin: 0;

    color: var(--muted);
}


/* FEATURE CARDS */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.feature-card {
    position: relative;

    padding: 25px;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform .2s,
        border-color .2s,
        background .2s;
}


.feature-card:hover {
    transform: translateY(-4px);

    background: var(--panel-hover);

    border-color: #344251;
}


.card-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 10px;

    background: #192331;

    color: #90a8ff;

    font-size: 18px;
}


.feature-card h3 {
    margin: 0 0 9px;

    font-size: 17px;
}


.feature-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


.card-arrow {
    display: block;

    margin-top: 20px;

    color: #708aff;
}


/* NOTES LIST */

.notes-list {
    border-top: 1px solid var(--border);
}


.note-item {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding: 23px 4px;

    border-bottom: 1px solid var(--border);

    transition: padding .2s;
}


.note-item:hover {
    padding-left: 10px;
}


.note-item h3 {
    margin: 5px 0 0;

    font-size: 17px;
}


.note-arrow {
    color: #708aff;

    font-size: 20px;
}


/* CTA */

.cta-section {
    padding: 75px 0;

    border-bottom: 1px solid var(--border);
}


.cta {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 40px;
}


.cta h2 {
    margin: 7px 0 8px;

    font-size: 28px;

    letter-spacing: -.025em;
}


.cta p {
    margin: 0;

    color: var(--muted);
}


/* PAGE HERO */

.page-hero {
    padding: 90px 0 75px;

    border-bottom: 1px solid var(--border);
}


.narrow {
    max-width: 820px;
}


.page-hero h1 {
    margin: 12px 0 20px;

    font-size: clamp(44px, 6vw, 68px);

    line-height: 1.04;

    letter-spacing: -.05em;
}


.page-hero p {
    max-width: 680px;

    margin: 0;

    color: var(--muted);

    font-size: 18px;
}


/* CONTENT */

.content-grid {
    display: grid;

    grid-template-columns: 1fr 330px;

    gap: 80px;
}


.prose {
    max-width: 720px;
}


.prose h2 {
    margin: 0 0 18px;

    font-size: 27px;
}


.prose h2:not(:first-child) {
    margin-top: 50px;
}


.prose p,
.prose li {
    color: var(--muted);

    font-size: 15px;
}


.prose li {
    margin: 8px 0;
}


.info-panel {
    align-self: start;

    padding: 25px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}


/* PROJECTS */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 17px;
}


.project-card {
    position: relative;

    padding: 30px;

    min-height: 300px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;
}


.project-card.large {
    grid-column: span 2;

    min-height: 270px;
}


.project-number {
    position: absolute;

    top: 24px;
    right: 27px;

    color: #2d3946;

    font-size: 34px;
    font-weight: 800;
}


.project-content {
    max-width: 650px;
}


.project-card h2 {
    margin: 10px 0 13px;

    font-size: 27px;

    letter-spacing: -.025em;
}


.project-card p {
    max-width: 620px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


.tag-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}


.tag-list span {
    padding: 5px 9px;

    background: #19222c;

    border-radius: 6px;

    color: #8997a6;

    font-size: 11px;
}


/* NOTES */

.notes-layout {
    display: grid;

    grid-template-columns: 190px 1fr;

    gap: 65px;
}


.notes-sidebar {
    position: sticky;
    top: 100px;

    align-self: start;
}


.sidebar-title {
    margin-bottom: 15px;

    color: #657281;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .13em;
}


.notes-sidebar a {
    display: block;

    padding: 8px 0;

    color: var(--muted);

    font-size: 14px;
}


.notes-sidebar a:hover {
    color: white;
}


.notes-content {
    max-width: 760px;
}


.article-card {
    padding-bottom: 55px;

    margin-bottom: 55px;

    border-bottom: 1px solid var(--border);
}


.article-card:last-child {
    border-bottom: 0;
}


.article-card h2 {
    margin: 9px 0 4px;

    font-size: 28px;

    letter-spacing: -.025em;
}


.article-meta {
    margin-bottom: 22px;

    color: #687585;

    font-size: 12px;
}


.article-card p {
    color: var(--muted);

    font-size: 15px;
}


/* LOGIN */

.login-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


.login-main {
    flex: 1;

    display: grid;
    place-items: center;

    padding: 70px 20px;
}


.login-box {
    width: min(420px, 100%);

    padding: 38px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .3);
}


.login-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #527cff,
            #765cff
        );

    color: white;

    font-size: 20px;
    font-weight: 800;
}


.login-box h1 {
    margin: 8px 0 8px;

    font-size: 32px;

    letter-spacing: -.035em;
}


.login-box > p {
    margin: 0 0 30px;

    color: var(--muted);

    font-size: 14px;
}


.login-form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.login-form label {
    margin-top: 8px;

    color: #c5ced8;

    font-size: 13px;
    font-weight: 600;
}


.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;

    height: 45px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background: #0c1218;

    color: white;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.login-form input:focus {
    border-color: #526fc5;

    box-shadow:
        0 0 0 3px rgba(82, 111, 197, .13);
}


.login-form input::placeholder {
    color: #4f5c69;
}


.login-options {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin: 9px 0 15px;

    color: var(--muted);

    font-size: 12px;
}


.login-options a {
    color: #8197e9;
}


.checkbox {
    display: flex;

    align-items: center;

    gap: 7px;
}


.checkbox input {
    accent-color: var(--accent);
}


.login-footer {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: #5f6c79;

    font-size: 11px;
}


/* FOOTER */

footer {
    padding: 30px 0;

    color: #65717e;

    font-size: 12px;
}


.footer-inner {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;
}


.footer-inner div {
    display: flex;

    gap: 20px;
}


.footer-inner a:hover {
    color: white;
}


/* RESPONSIVE */

@media (max-width: 900px) {

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

        gap: 50px;
    }


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


    .content-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .project-grid {
        grid-template-columns: 1fr;
    }


    .project-card.large {
        grid-column: auto;
    }


    .notes-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .notes-sidebar {
        position: static;

        display: flex;

        flex-wrap: wrap;

        gap: 18px;
    }


    .sidebar-title {
        width: 100%;
    }
}


@media (max-width: 680px) {

    .container {
        width: min(
            100% - 28px,
            var(--container)
        );
    }


    .nav {
        min-height: 62px;
    }


    .nav-links {
        display: none;
    }


    .login-link {
        margin-left: auto;
    }


    .hero {
        padding: 75px 0;
    }


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


    .hero-text {
        font-size: 16px;
    }


    .section {
        padding: 65px 0;
    }


    .section-heading h2 {
        font-size: 30px;
    }


    .card-grid {
        grid-template-columns: 1fr;
    }


    .page-hero {
        padding: 65px 0 55px;
    }


    .page-hero h1 {
        font-size: 45px;
    }


    .cta {
        align-items: flex-start;

        flex-direction: column;
    }


    .project-card {
        min-height: auto;
    }


    .login-box {
        padding: 28px 22px;
    }


    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }
}
