/* =========================================================
   DIGITELD
   Main Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --black: #0a0a0a;
    --black-2: #101010;
    --black-3: #171717;

    --white: #f5f5ef;
    --white-soft: #d9d9d2;

    --lime: #c8ff38;
    --lime-dark: #9acb18;

    --border: rgba(245,245,239,.16);
    --border-light: rgba(245,245,239,.08);

    --muted: #898983;

    --red: #ff6259;

    --max-width: 1380px;

    --radius: 4px;

    --mono:
        'DM Mono',
        monospace;

    --sans:
        'Inter',
        Arial,
        sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--black);

    color: var(--white);

    font-family: var(--sans);

    font-size: 16px;

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {

    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin-inline: auto;
}

main {
    overflow: hidden;
}

.section-label {

    font-family: var(--mono);

    font-size: 11px;

    letter-spacing: .14em;

    color: var(--muted);

    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: relative;

    z-index: 100;

    border-bottom: 1px solid var(--border);

    background: rgba(10,10,10,.92);

    backdrop-filter: blur(16px);
}

.nav-wrap {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: 800;

    font-size: 15px;

    letter-spacing: .08em;
}

.brand-mark {

    width: 32px;

    height: 32px;

    display: grid;

    place-items: center;

    background: var(--lime);

    color: var(--black);

    font-weight: 800;

    border-radius: 2px;
}

.main-nav {

    display: flex;

    align-items: center;

    gap: 32px;

    margin-left: auto;
}

.main-nav a {

    color: #aaa;

    font-size: 13px;

    transition: .2s ease;
}

.main-nav a:hover {
    color: var(--white);
}

.nav-actions {

    display: flex;

    align-items: center;

    gap: 16px;
}

.nav-login {

    color: #aaa;

    font-size: 13px;
}

.mobile-menu-btn {

    display: none;

    border: 0;

    background: transparent;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    min-height: 52px;

    padding: 0 22px;

    border: 1px solid transparent;

    font-size: 13px;

    font-weight: 600;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-small {

    min-height: 40px;

    padding: 0 17px;

    background: var(--lime);

    color: var(--black);
}

.btn-primary {

    background: var(--lime);

    color: var(--black);
}

.btn-primary:hover {
    background: #d6ff68;
}

.btn-outline {

    border-color: var(--border);

    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
}

.btn-dark {

    background: var(--black);

    color: var(--white);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    min-height: 720px;

    display: flex;

    align-items: center;

    border-bottom: 1px solid var(--border);

    overflow: hidden;
}

.hero-grid {

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}

.hero-inner {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, .95fr);

    gap: 80px;

    align-items: center;

    padding: 90px 0;
}

.eyebrow {

    display: flex;

    align-items: center;

    gap: 10px;

    font-family: var(--mono);

    font-size: 11px;

    letter-spacing: .12em;

    color: var(--muted);

    margin-bottom: 25px;
}

.pulse-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 0 5px rgba(200,255,56,.08);
}

.hero h1 {

    max-width: 850px;

    font-size:
        clamp(52px, 6.7vw, 102px);

    line-height: .96;

    letter-spacing: -.065em;

    font-weight: 700;
}

.hero h1 span {

    display: block;

    color: var(--lime);
}

.hero-description {

    max-width: 590px;

    margin-top: 30px;

    color: #a4a49e;

    font-size: 17px;

    line-height: 1.75;
}

.hero-actions {

    display: flex;

    gap: 12px;

    margin-top: 36px;
}

.hero-meta {

    display: flex;

    gap: 34px;

    margin-top: 48px;

    font-family: var(--mono);

    font-size: 10px;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: .1em;
}

.hero-meta span {

    display: flex;

    gap: 9px;

    align-items: center;
}

.hero-meta strong {
    color: var(--lime);
}


/* =========================================================
   CODE WINDOW
   ========================================================= */

.hero-visual {

    position: relative;

    min-height: 490px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.code-window {

    width: 100%;

    max-width: 590px;

    background: #111;

    border: 1px solid var(--border);

    box-shadow:
        0 30px 80px rgba(0,0,0,.4);
}

.window-bar {

    height: 46px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    gap: 15px;

    border-bottom: 1px solid var(--border);

    font-family: var(--mono);

    font-size: 10px;

    color: #777;
}

.window-dots {

    display: flex;

    gap: 5px;
}

.window-dots span {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #444;
}

.window-status {

    margin-left: auto;

    color: var(--lime);

    font-size: 9px;
}

.code-content {

    padding: 30px 25px;

    min-height: 285px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.025),
            transparent
        );
}

.code-content pre {

    font-family: var(--mono);

    font-size: 13px;

    line-height: 2;

    color: #c5c5bf;

    white-space: pre-wrap;
}

.code-purple {
    color: #c19cff;
}

.code-green {
    color: #91e65c;
}

.code-blue {
    color: #76c7ff;
}

.code-orange {
    color: #ffb86b;
}

.code-string {
    color: var(--lime);
}

.terminal-output {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 20px;

    border-top: 1px solid var(--border);

    font-family: var(--mono);

    font-size: 10px;
}

.terminal-label {
    color: #666;
}

.terminal-result {
    color: var(--lime);
}


/* =========================================================
   FLOATING CARDS
   ========================================================= */

.floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 16px;

    background: rgba(22,22,22,.96);

    border: 1px solid var(--border);

    box-shadow: 0 15px 40px rgba(0,0,0,.35);

    backdrop-filter: blur(12px);
}

.floating-card small {

    display: block;

    font-family: var(--mono);

    color: #666;

    font-size: 8px;

    letter-spacing: .1em;
}

.floating-card strong {

    display: block;

    font-size: 12px;

    margin-top: 2px;
}

.floating-icon {

    display: grid;

    place-items: center;

    width: 31px;

    height: 31px;

    background: var(--lime);

    color: var(--black);
}

.floating-xp {

    left: -25px;

    bottom: 80px;
}

.floating-lab {

    right: -20px;

    top: 75px;
}

.floating-number {

    color: var(--lime);

    font-family: var(--mono);

    font-size: 12px;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-section {

    padding: 140px 0;

    border-bottom: 1px solid var(--border);
}

.intro-grid {

    display: grid;

    grid-template-columns: .35fr 1fr;

    gap: 80px;
}

.section-number {

    font-family: var(--mono);

    font-size: 10px;

    color: #666;

    letter-spacing: .12em;
}

.intro-grid h2 {

    max-width: 850px;

    font-size:
        clamp(42px, 5vw, 76px);

    line-height: 1;

    letter-spacing: -.055em;
}

.intro-grid h2 span {
    color: var(--lime);
}

.large-text {

    max-width: 720px;

    margin-top: 30px;

    font-size: 19px;

    color: #999;

    line-height: 1.75;
}


/* =========================================================
   AREAS
   ========================================================= */

.areas-section {

    padding: 130px 0;

    border-bottom: 1px solid var(--border);
}

.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

    margin-bottom: 60px;
}

.section-heading h2 {

    margin-top: 14px;

    font-size:
        clamp(42px, 5vw, 72px);

    line-height: .98;

    letter-spacing: -.055em;
}

.section-heading h2 span {
    color: var(--lime);
}

.section-heading > p {

    max-width: 360px;

    color: #777;

    font-size: 14px;

    line-height: 1.7;
}

.areas-grid {

    display: grid;

    grid-template-columns:
        1.25fr 1fr 1fr;

    gap: 1px;

    background: var(--border);
}

.area-card {

    position: relative;

    min-height: 370px;

    padding: 30px;

    background: var(--black);

    display: flex;

    flex-direction: column;

    transition:
        background .25s ease,
        transform .25s ease;
}

.area-card:hover {

    background: #151515;

    z-index: 2;
}

.area-large {

    grid-row: span 2;

    min-height: 741px;
}

.area-top {

    display: flex;

    justify-content: space-between;

    color: #666;

    font-family: var(--mono);

    font-size: 10px;
}

.area-arrow {

    font-size: 18px;

    color: #777;

    transition: .2s ease;
}

.area-card:hover .area-arrow {
    color: var(--lime);
    transform: translate(3px,-3px);
}

.area-icon {

    margin-top: auto;

    margin-bottom: 25px;

    width: 74px;

    height: 74px;

    border: 1px solid var(--border);

    display: grid;

    place-items: center;

    font-family: var(--mono);

    font-size: 20px;

    color: var(--lime);
}

.area-card h3 {

    font-size: 28px;

    line-height: 1.1;

    letter-spacing: -.03em;
}

.area-card p {

    margin-top: 12px;

    max-width: 390px;

    color: #777;

    font-size: 13px;

    line-height: 1.7;
}

.area-tags {

    display: flex;

    gap: 7px;

    margin-top: 22px;
}

.area-tags span {

    padding: 5px 8px;

    border: 1px solid var(--border);

    color: #777;

    font-family: var(--mono);

    font-size: 8px;

    letter-spacing: .08em;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-section {

    padding: 130px 0;

    border-bottom: 1px solid var(--border);
}

.process-grid {

    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr;

    gap: 30px;

    align-items: center;
}

.process-item {
    min-height: 200px;
}

.process-number {

    font-family: var(--mono);

    color: var(--lime);

    font-size: 11px;
}

.process-item h3 {

    margin-top: 25px;

    font-size: 31px;

    letter-spacing: -.04em;
}

.process-item p {

    max-width: 280px;

    margin-top: 12px;

    color: #777;

    font-size: 13px;
}

.process-line {

    width: 50px;

    height: 1px;

    background: var(--border);
}


/* =========================================================
   LAB
   ========================================================= */

.lab-preview {

    padding: 120px 0;

    border-bottom: 1px solid var(--border);
}

.lab-panel {

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    border: 1px solid var(--border);

    background: #111;
}

.lab-copy {

    padding: 70px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.lab-copy h2 {

    margin-top: 18px;

    font-size:
        clamp(38px, 4vw, 61px);

    line-height: 1;

    letter-spacing: -.055em;
}

.lab-copy h2 span {
    color: var(--lime);
}

.lab-copy p {

    margin: 25px 0 35px;

    color: #777;

    max-width: 420px;
}

.lab-terminal {

    min-height: 420px;

    border-left: 1px solid var(--border);

    background: #080808;

    font-family: var(--mono);
}

.terminal-top {

    display: flex;

    justify-content: space-between;

    padding: 17px 22px;

    border-bottom: 1px solid var(--border);

    color: #666;

    font-size: 9px;

    letter-spacing: .08em;
}

.terminal-lines {

    padding: 60px 45px;

    font-size: 12px;

    line-height: 3;

    color: #888;
}

.terminal-lines span {

    margin-right: 15px;

    color: var(--lime);
}

.terminal-success {

    margin-top: 25px;

    color: var(--lime);
}


/* =========================================================
   CHALLENGES
   ========================================================= */

.challenge-section {

    padding: 130px 0;

    border-bottom: 1px solid var(--border);
}

.challenge-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.challenge-grid h2 {

    margin-top: 20px;

    font-size:
        clamp(42px, 5vw, 70px);

    line-height: 1;

    letter-spacing: -.055em;
}

.challenge-grid h2 span {
    color: var(--lime);
}

.challenge-grid p {

    max-width: 500px;

    margin-top: 25px;

    color: #777;

    line-height: 1.7;
}

.text-link {

    display: inline-flex;

    gap: 14px;

    margin-top: 30px;

    color: var(--lime);

    font-family: var(--mono);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .1em;
}

.challenge-card {

    border: 1px solid var(--border);

    background: #111;

    padding: 32px;
}

.challenge-card-top {

    display: flex;

    justify-content: space-between;

    color: #666;

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: .1em;
}

.challenge-card-top span:last-child {
    color: var(--lime);
}

.challenge-card h3 {

    margin-top: 65px;

    font-size: 36px;

    letter-spacing: -.04em;
}

.challenge-card p {

    margin-top: 10px;

    color: #777;

    font-size: 13px;
}

.challenge-progress {

    height: 3px;

    margin-top: 40px;

    background: #272727;
}

.challenge-progress div {

    width: 64%;

    height: 100%;

    background: var(--lime);
}

.challenge-footer {

    display: flex;

    justify-content: space-between;

    margin-top: 20px;

    color: #666;

    font-family: var(--mono);

    font-size: 9px;
}

.challenge-footer a {
    color: var(--lime);
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {

    padding: 140px 0;

    background: var(--lime);

    color: var(--black);
}

.final-cta .section-label {
    color: rgba(0,0,0,.5);
}

.final-cta h2 {

    margin-top: 20px;

    font-size:
        clamp(55px, 8vw, 115px);

    line-height: .88;

    letter-spacing: -.07em;
}

.final-cta h2 span {
    opacity: .45;
}

.final-cta .btn {

    margin-top: 45px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {

    background: #080808;

    border-top: 1px solid var(--border);

    padding: 80px 0 25px;
}

.footer-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 70px;
}

.footer-brand {

    font-size: 25px;

    font-weight: 800;

    letter-spacing: .08em;
}

.footer-grid p {

    max-width: 300px;

    margin-top: 15px;

    color: #666;

    font-size: 13px;
}

.footer-grid h4 {

    margin-bottom: 20px;

    color: #555;

    font-family: var(--mono);

    font-size: 9px;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.footer-grid a {

    display: block;

    margin-bottom: 10px;

    color: #888;

    font-size: 12px;
}

.footer-grid a:hover {
    color: var(--lime);
}

.footer-bottom {

    display: flex;

    justify-content: space-between;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: #555;

    font-family: var(--mono);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .hero-inner {

        grid-template-columns: 1fr;

    }

    .hero-visual {

        max-width: 700px;

    }

    .areas-grid {

        grid-template-columns: 1fr 1fr;

    }

    .area-large {

        grid-row: auto;

        min-height: 500px;

        grid-column: span 2;

    }

    .process-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }

    .process-line {

        display: none;

    }

    .lab-panel {

        grid-template-columns: 1fr;

    }

    .lab-terminal {

        border-left: 0;

        border-top: 1px solid var(--border);

    }

}


@media (max-width: 760px) {

    .container {

        width: min(
            calc(100% - 30px),
            var(--max-width)
        );
    }

    .main-nav,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {

        min-height: auto;

    }

    .hero-inner {

        padding: 75px 0;

    }

    .hero h1 {

        font-size: clamp(
            48px,
            14vw,
            76px
        );
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {

        flex-direction: column;

        align-items: stretch;
    }

    .hero-meta {

        gap: 15px;

        flex-wrap: wrap;
    }

    .hero-visual {

        min-height: 410px;
    }

    .code-content {

        padding: 20px 15px;
    }

    .code-content pre {

        font-size: 10px;

        line-height: 1.8;
    }

    .floating-xp {
        left: -5px;
        bottom: 25px;
    }

    .floating-lab {
        right: -5px;
        top: 20px;
    }

    .intro-section,
    .areas-section,
    .process-section,
    .lab-preview,
    .challenge-section {

        padding: 85px 0;

    }

    .intro-grid {

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .section-heading {

        display: block;
    }

    .section-heading > p {

        margin-top: 25px;
    }

    .areas-grid {

        grid-template-columns: 1fr;
    }

    .area-large {

        grid-column: auto;

        min-height: 450px;
    }

    .area-card {

        min-height: 350px;
    }

    .lab-copy {

        padding: 35px 25px;
    }

    .terminal-lines {

        padding: 40px 25px;

        font-size: 10px;
    }

    .challenge-grid {

        grid-template-columns: 1fr;

        gap: 55px;
    }

    .challenge-card {

        padding: 24px;
    }

    .footer-grid {

        grid-template-columns: 1fr 1fr;

        gap: 40px;
    }

    .footer-grid > div:first-child {

        grid-column: span 2;
    }

    .footer-bottom {

        flex-direction: column;

        gap: 10px;
    }

}


@media (max-width: 420px) {

    .hero-meta {

        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .floating-card {

        transform: scale(.9);
    }

    .floating-xp {
        left: -15px;
    }

    .floating-lab {
        right: -15px;
    }

    .footer-grid {

        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {

        grid-column: auto;
    }
}