:root {
    --bg: #080b12;
    --bg-soft: #0d111a;
    --card: #10151f;
    --card-hover: #141b27;

    --text: #f4f7fb;
    --muted: #8e98a9;

    --line: rgba(255,255,255,.09);

    --accent: #66e3a4;
    --accent-2: #5db7ff;

    --danger: #ff6878;

    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

    line-height: 1.6;
}

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

button,
input {
    font: inherit;
}

.noise {
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: .035;

    z-index: 9999;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background: rgba(8,11,18,.82);

    backdrop-filter: blur(18px);

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

.header-inner {
    max-width: var(--max);

    margin: auto;

    height: 74px;

    padding: 0 24px;

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

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

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

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--text);
    color: var(--bg);

    font-weight: 900;
}

.brand strong {
    display: block;

    font-size: 13px;
    letter-spacing: .08em;
}

.brand small {
    display: block;

    color: var(--accent);

    font-size: 9px;
    letter-spacing: .25em;
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--muted);

    font-size: 14px;

    transition: .2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a.active {
    position: relative;
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -27px;

    height: 2px;

    background: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language {
    font-size: 12px;
    font-weight: 800;

    color: var(--muted);
}

.theme-button {
    width: 34px;
    height: 34px;

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

    border-radius: 50%;

    background: transparent;

    color: var(--text);

    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

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

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(93,183,255,.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(102,227,164,.08),
            transparent 30%
        );
}

.hero-grid {
    width: 100%;
    max-width: var(--max);

    margin: auto;

    padding: 100px 24px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, .95fr);

    gap: 80px;

    align-items: center;
}

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

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .15em;
}

.pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 15px var(--accent);
}

.hero h1 {
    margin: 24px 0;

    font-size: clamp(60px, 8vw, 112px);

    line-height: .9;

    letter-spacing: -.07em;

    font-weight: 900;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 580px;

    color: var(--muted);

    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 35px;
}

.button {
    min-height: 48px;

    padding: 0 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 800;

    transition: .2s;
}

.button-primary {
    background: var(--accent);
    color: #06110b;
}

.button-primary:hover {
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid var(--line);

    color: var(--text);
}

.button-secondary:hover {
    background: rgba(255,255,255,.05);
}


/* TERMINAL */

.terminal-window {
    overflow: hidden;

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

    border-radius: 12px;

    background: #070a0f;

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

.terminal-top {
    height: 42px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 15px;

    background: #0d1118;

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

.terminal-top span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #48505d;
}

.terminal-top label {
    margin-left: auto;
    margin-right: auto;

    color: #687385;

    font-size: 11px;

    font-family: monospace;
}

.terminal-body {
    padding: 28px;

    min-height: 400px;

    color: #b7c3d4;

    font-family: "SFMono-Regular", Consolas, monospace;

    font-size: 13px;
}

.terminal-body p {
    margin: 0 0 12px;
}

.terminal-body b {
    color: var(--accent);
}

.terminal-muted {
    color: #596577;
}

.terminal-success {
    color: var(--accent);
}

.terminal-status {
    display: flex;
    justify-content: space-between;

    max-width: 300px;

    padding: 6px 0;

    color: #647084;
}

.terminal-status strong {
    color: var(--text);
}

.cursor {
    margin-top: 30px !important;

    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: .3;
    }
}


/* STATS */

.stats-section {
    border-bottom: 1px solid var(--line);
}

.stats {
    max-width: var(--max);

    margin: auto;

    padding: 0 24px;

    display: grid;

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

.stat {
    padding: 35px 20px;

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

.stat:first-child {
    border-left: 1px solid var(--line);
}

.stat strong {
    display: block;

    font-size: 34px;

    letter-spacing: -.05em;
}

.stat span {
    color: var(--muted);

    font-size: 12px;
}


/* SECTIONS */

.section,
.featured-section,
.about-section {
    max-width: var(--max);

    margin: auto;

    padding: 110px 24px;
}

.section-heading {
    margin-bottom: 45px;

    display: flex;

    justify-content: space-between;

    gap: 40px;

    align-items: end;
}

.section-label {
    color: var(--accent);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .16em;
}

.section-heading h2,
.about-grid h2 {
    margin: 10px 0 0;

    font-size: clamp(32px,5vw,55px);

    line-height: 1;

    letter-spacing: -.05em;
}

.section-heading > p {
    max-width: 360px;

    margin: 0;

    color: var(--muted);
}


/* FILTER */

.filter-bar {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.filters {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.filter-button {
    padding: 9px 13px;

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

    border-radius: 5px;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    font-size: 12px;

    transition: .2s;
}

.filter-button:hover,
.filter-button.active {
    background: var(--text);

    border-color: var(--text);

    color: var(--bg);
}

.search-box {
    min-width: 230px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 12px;

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

    border-radius: 5px;

    background: var(--bg-soft);
}

.search-box span {
    color: var(--muted);
}

.search-box input {
    width: 100%;

    padding: 10px 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 12px;
}


/* PROJECT */

.project-grid {
    display: grid;

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

    gap: 15px;
}

.project-card {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    padding: 24px;

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

    border-radius: 9px;

    background: var(--card);

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

.project-card:hover {
    transform: translateY(-5px);

    border-color: rgba(102,227,164,.35);

    background: var(--card-hover);
}

.project-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.project-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

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

    border-radius: 8px;

    color: var(--accent);

    font-weight: 900;
}

.status {
    padding: 5px 8px;

    border-radius: 4px;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .1em;
}

.status-live {
    background: rgba(102,227,164,.1);

    color: var(--accent);
}

.status-experimental {
    background: rgba(93,183,255,.1);

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

.project-category {
    margin-bottom: 5px;

    color: var(--accent);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.project-card h3 {
    margin: 0 0 10px;

    font-size: 20px;

    letter-spacing: -.03em;
}

.project-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: auto;

    padding-top: 25px;
}

.tags span {
    padding: 4px 7px;

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

    border-radius: 4px;

    color: #778396;

    font-size: 10px;
}

.project-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 18px;

    margin-top: 18px;

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

    color: #657083;

    font-size: 10px;
}

.project-footer a {
    color: var(--text);

    font-weight: 800;
}

.no-results {
    display: none;

    padding: 50px;

    text-align: center;

    color: var(--muted);
}


/* FEATURED */

.featured-section {
    max-width: none;

    background: var(--bg-soft);

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

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

.featured-section > * {
    max-width: var(--max);

    margin-left: auto;
    margin-right: auto;
}

.featured-grid {
    display: grid;

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

    gap: 12px;
}

.featured-card {
    padding: 30px;

    display: grid;

    grid-template-columns: 55px 1fr 25px;

    gap: 15px;

    align-items: start;

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

    border-radius: 8px;

    background: var(--card);

    transition: .2s;
}

.featured-card:hover {
    border-color: rgba(102,227,164,.4);

    transform: translateY(-3px);
}

.featured-number {
    font-size: 25px;

    color: var(--accent);
}

.featured-card span {
    color: var(--accent);

    font-size: 10px;

    text-transform: uppercase;

    font-weight: 800;
}

.featured-card h3 {
    margin: 4px 0;

    font-size: 20px;
}

.featured-card p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}

.featured-card > strong {
    color: var(--muted);
}


/* ABOUT */

.about-section {
    border-bottom: 1px solid var(--line);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.about-grid h2 span {
    color: var(--accent);
}

.about-text {
    color: var(--muted);

    font-size: 16px;
}

.about-text p {
    margin-top: 0;

    margin-bottom: 25px;
}

.principles {
    display: grid;

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

    gap: 1px;

    margin-top: 40px;

    background: var(--line);

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

.principles div {
    padding: 18px;

    display: flex;

    justify-content: space-between;

    background: var(--bg);
}

.principles strong {
    color: var(--accent);
}

.principles span {
    color: var(--text);

    font-size: 12px;

    font-weight: 800;
}


/* CTA */

.cta-section {
    padding: 130px 24px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(102,227,164,.1),
            transparent 40%
        );
}

.cta-inner {
    max-width: 700px;

    margin: auto;
}

.cta-section h2 {
    margin: 15px 0;

    font-size: clamp(45px,8vw,90px);

    letter-spacing: -.07em;

    line-height: .9;
}

.cta-section p {
    color: var(--muted);

    margin-bottom: 30px;
}


/* FOOTER */

.site-footer {
    border-top: 1px solid var(--line);
}

.footer-main,
.footer-bottom {
    max-width: var(--max);

    margin: auto;

    padding: 30px 24px;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-brand strong {
    letter-spacing: .1em;
}

.footer-brand p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.footer-links {
    display: flex;

    gap: 20px;

    align-items: center;
}

.footer-links a {
    color: var(--muted);

    font-size: 11px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 20px;

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

    color: #596577;

    font-size: 10px;
}


/* LIGHT */

body.light {
    --bg: #f4f6f8;
    --bg-soft: #e9edf1;
    --card: #ffffff;
    --card-hover: #ffffff;

    --text: #111820;
    --muted: #647080;

    --line: rgba(0,0,0,.1);
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .main-nav {
        display: none;
    }

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

        gap: 50px;
    }

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

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

        gap: 50px;
    }

}

@media (max-width: 650px) {

    .header-inner {
        padding: 0 16px;
    }

    .hero-grid {
        padding: 75px 20px;
    }

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

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

        padding: 0;
    }

    .stat {
        border-bottom: 1px solid var(--line);
    }

    .section,
    .featured-section,
    .about-section {
        padding: 75px 20px;
    }

    .section-heading {
        flex-direction: column;

        align-items: start;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

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

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

    .footer-main,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}