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

:root {

    --bg: #07080c;
    --surface: #101219;
    --surface2: #161923;

    --border: #262b37;

    --text: #f5f7fb;
    --muted: #9299a9;

    --accent: #785cff;
    --accent-light: #a18cff;

    --green: #42d982;
    --red: #ff5964;
}

body.light {

    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface2: #eef0f5;

    --border: #dfe2e8;

    --text: #11131a;
    --muted: #656b79;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    transition:
        background .25s,
        color .25s;
}

button,
input,
textarea,
select {

    font: inherit;
}

button {
    cursor: pointer;
}

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


/* NAV */

.navbar {

    position: sticky;

    top: 0;

    z-index: 100;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 6%;

    background:
        rgba(7, 8, 12, .84);

    backdrop-filter: blur(20px);

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

.light .navbar {

    background:
        rgba(255, 255, 255, .88);
}

.brand {

    display: flex;

    align-items: center;

    gap: 12px;
}

.brand-logo {

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background: var(--accent);

    font-weight: 900;
}

.brand strong {

    display: block;

    letter-spacing: .1em;
}

.brand span {

    display: block;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: .18em;
}

nav {

    display: flex;

    gap: 28px;
}

nav a {

    color: var(--muted);

    font-size: 14px;
}

nav a:hover {

    color: var(--text);
}

.nav-actions {

    display: flex;

    gap: 8px;
}

.icon-button,
.login-button {

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

    background:
        var(--surface2);

    color: var(--text);

    border-radius: 10px;

    padding: 10px 14px;
}

.icon-button {

    width: 42px;
}


/* HERO */

.hero {

    min-height: 600px;

    display: flex;

    align-items: center;

    padding: 100px 8%;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(120, 92, 255, .2),
            transparent 50%
        );
}

.hero-content {

    max-width: 850px;
}

.status {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 12px;

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

    border-radius: 999px;

    color: var(--muted);

    font-size: 13px;
}

.status span {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);
}

.hero h1 {

    margin-top: 25px;

    font-size:
        clamp(48px, 7vw, 88px);

    line-height: .98;

    letter-spacing: -.06em;
}

.hero h1 b {

    color: var(--accent-light);
}

.hero p {

    max-width: 650px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 18px;
}

.hero-buttons {

    display: flex;

    gap: 12px;

    margin-top: 35px;
}


/* BUTTONS */

.primary-button,
.secondary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 18px;

    border-radius: 10px;

    border: 0;

    font-weight: 700;
}

.primary-button {

    background:
        var(--accent);

    color: white;
}

.primary-button:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.1);
}

.secondary-button {

    background:
        var(--surface2);

    color: var(--text);

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

.full {

    width: 100%;
}

.small-button {

    padding: 7px 12px;

    border: 0;

    border-radius: 8px;

    background:
        var(--accent);

    color: white;
}


/* SEARCH */

.search-section {

    padding: 30px 8%;
}

.search {

    max-width: 850px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    background:
        var(--surface);

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

    border-radius: 14px;
}

.search span {

    font-size: 24px;

    color: var(--muted);
}

.search input {

    width: 100%;

    background: none;

    border: 0;

    outline: 0;

    color: var(--text);
}


/* SECTIONS */

.section {

    max-width: 1200px;

    margin: auto;

    padding: 90px 30px;
}

.heading span {

    color:
        var(--accent-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .17em;
}

.heading h2 {

    margin-top: 8px;

    font-size: 42px;

    letter-spacing: -.04em;
}

.heading p {

    margin-top: 10px;

    color: var(--muted);
}


/* CARDS */

.cards {

    display: grid;

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

    gap: 18px;

    margin-top: 35px;
}

.card {

    padding: 25px;

    background:
        var(--surface);

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

    border-radius: 16px;

    transition: .25s;
}

.card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--accent);
}

.card-icon {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    margin-bottom: 20px;

    background:
        var(--surface2);

    border-radius: 12px;
}

.card p {

    margin:
        10px 0 20px;

    color: var(--muted);

    font-size: 14px;
}

.card a {

    color:
        var(--accent-light);

    font-weight: 700;

    font-size: 14px;
}


/* GUIDE */

.guide {

    display: grid;

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

    gap: 18px;

    margin-top: 30px;
}

.guide div {

    padding: 25px;

    background:
        var(--surface);

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

    border-radius: 15px;
}

.guide strong {

    color:
        var(--accent-light);

    font-size: 30px;
}

.guide h3 {

    margin-top: 10px;
}

.guide p {

    margin-top: 5px;

    color: var(--muted);
}


/* FORMS */

.form-section {

    max-width: 850px;
}

form {

    margin-top: 30px;
}

.form-grid {

    display: grid;

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

    gap: 15px;
}

.field {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 18px;
}

.field label {

    color:
        var(--muted);

    font-size: 13px;

    font-weight: 700;
}

.field input,
.field textarea,
.field select {

    width: 100%;

    padding: 13px 14px;

    background:
        var(--surface2);

    color:
        var(--text);

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

    border-radius: 10px;

    outline: none;
}

.field textarea {

    min-height: 150px;

    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {

    border-color:
        var(--accent);
}

.message {

    margin-top: 15px;

    color:
        var(--green);

    font-size: 14px;
}


/* UPDATES */

.updates {

    display: grid;

    gap: 15px;

    margin-top: 30px;
}

.update {

    padding: 25px;

    background:
        var(--surface);

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

    border-radius: 15px;
}

.update-date {

    color:
        var(--accent-light);

    font-size: 12px;

    font-weight: 700;
}

.update p {

    margin-top: 8px;

    color:
        var(--muted);
}

.loading {

    color:
        var(--muted);
}


/* MODALS */

.modal {

    position: fixed;

    inset: 0;

    z-index: 500;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .75);

    backdrop-filter: blur(10px);
}

.modal.open {

    display: flex;
}

.modal-box {

    position: relative;

    width: 100%;

    max-width: 440px;

    padding: 35px;

    background:
        var(--surface);

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

    border-radius: 20px;
}

.modal-box h2 {

    font-size: 30px;
}

.modal-box > p {

    margin: 8px 0 25px;

    color:
        var(--muted);
}

.close {

    position: absolute;

    top: 12px;

    right: 18px;

    background: none;

    border: 0;

    color:
        var(--muted);

    font-size: 30px;
}

.divider {

    text-align: center;

    margin: 20px 0;

    color:
        var(--muted);

    font-size: 12px;
}


/* DASHBOARD */

.dashboard {

    display: none;

    max-width: 1400px;

    margin: 70px auto;

    padding: 30px;
}

.dashboard.open {

    display: block;
}

.dashboard-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;
}

.dashboard-header > div > span {

    color:
        var(--accent-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .15em;
}

.dashboard-header h2 {

    font-size: 36px;
}

.stats {

    display: grid;

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

    gap: 15px;

    margin-bottom: 20px;
}

.stat {

    padding: 22px;

    background:
        var(--surface);

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

    border-radius: 14px;
}

.stat span {

    color:
        var(--muted);

    font-size: 13px;
}

.stat strong {

    display: block;

    margin-top: 5px;

    font-size: 30px;
}


/* DASHBOARD GRID */

.dashboard-grid {

    display: grid;

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

    gap: 18px;
}

.panel {

    padding: 22px;

    background:
        var(--surface);

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

    border-radius: 15px;
}

.full-panel {

    grid-column:
        1 / -1;
}

.panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.admin-item {

    padding: 15px 0;

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

.admin-item:last-child {

    border-bottom: 0;
}

.admin-item small {

    color:
        var(--muted);
}

.admin-item p {

    margin-top: 6px;

    color:
        var(--muted);
}

.admin-item button {

    margin-top: 10px;
}


/* FOOTER */

footer {

    display: flex;

    justify-content: space-between;

    padding: 40px 8%;

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

    color:
        var(--muted);
}

footer strong {

    color:
        var(--text);
}

footer span {

    margin-left: 8px;
}


/* UTILITY */

.hidden {

    display: none !important;
}


/* MOBILE */

@media(max-width: 900px) {

    nav {

        display: none;
    }

    .cards {

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

    .stats {

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

}

@media(max-width: 600px) {

    .navbar {

        padding: 0 20px;
    }

    .hero {

        padding: 80px 25px;
    }

    .hero-buttons {

        flex-direction: column;
    }

    .cards,
    .guide,
    .form-grid,
    .dashboard-grid,
    .stats {

        grid-template-columns:
            1fr;
    }

    .section {

        padding: 60px 20px;
    }

    .full-panel {

        grid-column: auto;
    }

    footer {

        flex-direction: column;

        gap: 15px;
    }

}
