/* ========================================
   BYJECS / HOME PAGE
   ======================================== */

/* ========================================
   01 / HERO
   ======================================== */

/* ========================================
   HERO / MOBILE FIRST
   ======================================== */

.home-hero {
    position: relative;
    overflow: hidden;
}

.home-hero__grid,
.home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--space-16);
}

.home-hero__content,
.home-work__featured,
.home-about__content {
    min-width: 0;
}

.home-hero__content .section-label {
    margin-bottom: var(--space-6);
}

.home-hero__title {
    max-width: 48rem;
    margin-bottom: var(--space-6);
    font-size: clamp(2.375rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.home-hero__title span {
    color: var(--color-purple-light);
}

.home-hero__description {
    max-width: 36rem;
    margin-bottom: var(--space-8);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

/* ========================================
   HERO / VISUAL COMPOSITION
   ======================================== */

.home-hero__visual {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding-block: var(--space-8);
}

.home-hero__glow {
    position: absolute;
    z-index: -1;
    inset: 8% -8%;

    background: radial-gradient(
        ellipse at center,
        rgb(var(--color-purple-rgb) / 0.22) 0%,
        rgb(var(--color-purple-rgb) / 0.08) 38%,
        transparent 72%
    );

    filter: blur(28px);
    pointer-events: none;
}

.home-hero__mockup {
    position: relative;
    overflow: hidden;

    border: 1px solid rgb(var(--color-purple-rgb) / 0.35);
    border-radius: var(--radius-media);

    background: var(--color-surface-1);

    box-shadow:
        0 30px 70px rgb(0 0 0 / 0.35),
        0 0 50px rgb(var(--color-purple-rgb) / 0.08);
}

.home-hero__mockup-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);

    height: 2.75rem;
    padding-inline: var(--space-4);

    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.home-hero__mockup-bar > span:not(.home-hero__mockup-url) {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--color-text-secondary);
    opacity: 0.45;
}

.home-hero__mockup-url,
.home-work__preview-url {
    margin-left: auto;

    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.625rem;
}

.home-hero__mockup-screen {
    display: flex;
    flex-direction: column;

    min-height: 20rem;
    aspect-ratio: 16 / 11;

    padding: var(--space-6);

    background:
        radial-gradient(
            circle at 80% 65%,
            rgb(var(--color-purple-rgb) / 0.2),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            var(--color-surface-1),
            var(--color-bg)
        );
}

.home-hero__preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.home-hero__preview-logo {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.04em;
}

.home-hero__preview-logo span {
    color: var(--color-purple);
}

.home-hero__preview-nav,
.home-hero__preview-caption {
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
}

.home-hero__preview-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;

    padding-block: var(--space-8);
}

.home-hero__preview-label {
    margin-bottom: var(--space-4);

    color: var(--color-ice-blue);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
}

.home-hero__preview-title {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.6vw, 3.75rem);
    font-weight: var(--font-weight-bold);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.home-hero__preview-title span {
    color: var(--color-purple-light);
}

.home-hero__preview-line {
    width: 3rem;
    height: 2px;
    margin-block: var(--space-6);

    background: var(--color-purple);
}

.home-hero__visual-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);

    margin-top: var(--space-6);

    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
}

/* ========================================
   HERO / MOBILE DEVICE MOCKUP
   ======================================== */

.home-hero__phone {
    position: absolute;
    z-index: 2;

    right: -3%;
    bottom: 4rem;

    width: clamp(7.5rem, 30%, 10rem);
    aspect-ratio: 9 / 19.5;

    padding: 0.3rem;

    border: 2px solid #393944;
    border-radius: 1.5rem;

    background: var(--color-bg);

    box-shadow:
        0 20px 45px rgb(0 0 0 / 0.5),
        0 0 30px rgb(var(--color-purple-rgb) / 0.12);

    transform: rotate(5deg);
}

.home-hero__phone-screen {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    overflow: hidden;
    border-radius: 1.15rem;

    background:
        radial-gradient(
            circle at 80% 65%,
            rgb(var(--color-purple-rgb) / 0.2),
            transparent 65%
        ),
        var(--color-surface-1);
}

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

    padding: 0.65rem 0.7rem 0.35rem;

    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.45rem;
}

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

    padding: 0.4rem 0.7rem;

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

.home-hero__phone-logo {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
}

.home-hero__phone-logo span {
    color: var(--color-purple);
}

.home-hero__phone-menu {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.home-hero__phone-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    flex: 1;
    padding: 0.7rem;
}

.home-hero__phone-label {
    margin-bottom: 0.7rem;

    color: var(--color-ice-blue);
    font-family: var(--font-mono);
    font-size: 0.38rem;
    letter-spacing: 0.06em;
}

.home-hero__phone-title {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.5vw, 1.4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.home-hero__phone-title span {
    color: var(--color-purple-light);
}

.home-hero__phone-line {
    width: 1.5rem;
    height: 2px;
    margin-block: 0.8rem;

    background: var(--color-purple);
}

.home-hero__phone-button {
    padding: 0.45rem 0.5rem;

    border-radius: 0.25rem;

    background: var(--color-purple);
    color: var(--color-text-primary);

    font-family: var(--font-mono);
    font-size: 0.4rem;
    letter-spacing: 0.02em;
}

/* ========================================
   HERO / RESPONSIVE
   ======================================== */

@media (min-width: 1024px) {
    .home-hero__grid {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(0, 0.9fr);

        gap: var(--space-12);
        min-height: 36rem;
    }

    .home-hero__title {
        font-size: clamp(3rem, 4vw, 3.5rem);
    }

    .home-hero__visual {
        transform: perspective(1200px) rotateY(-5deg);
        transform-origin: center;
    }
}

@media (max-width: 639px) {
    .home-hero__actions .btn {
        width: 100%;
    }

    .home-hero__mockup-screen {
        min-height: 17rem;
        padding: var(--space-4);
    }

    .home-hero__preview-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .home-hero__preview-nav {
        display: none;
    }
}

/* ========================================
   HERO / DEVICE COMPOSITION RESPONSIVE
   ======================================== */

@media (min-width: 1024px) {
    .home-hero__visual {
        padding-right: var(--space-8);
        padding-bottom: var(--space-12);
    }

    .home-hero__phone {
        right: -2%;
        bottom: 5.5rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .home-hero__visual {
        max-width: 42rem;
        margin-inline: auto;
        padding-right: var(--space-8);
    }

    .home-hero__phone {
        right: 0;
        bottom: 4rem;
    }
}

@media (max-width: 639px) {
    .home-hero__visual {
        padding-right: var(--space-6);
        padding-bottom: var(--space-8);
    }

    .home-hero__phone {
        width: 27%;
        min-width: 5.5rem;

        right: 0;
        bottom: 3rem;

        transform: rotate(3deg);
    }

    .home-hero__phone-title {
        font-size: clamp(0.75rem, 3vw, 1rem);
    }

    .home-hero__phone-label {
        font-size: 0.3rem;
    }
}

.home-services,
.home-work,
.home-about {
    position: relative;
    border-top: 1px solid var(--color-border);
}

.home-services__header {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);

    margin-bottom: var(--space-12);
}

.home-services__intro .section-label {
    margin-bottom: var(--space-6);
}

.home-services__intro h2 {
    max-width: 42rem;
}

.home-services__intro h2 span {
    color: var(--color-purple-light);
}

.home-services__description {
    max-width: 34rem;
}

.home-services__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
}

/* ========================================
   SERVICES / RESPONSIVE
   ======================================== */

@media (min-width: 768px) {
    .home-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 1024px) {
    .home-services__header {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(0, 0.9fr);

        align-items: end;
        gap: var(--space-12);
    }

}

.home-work__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);

    margin-bottom: var(--space-12);
}

.home-work__header .section-label {
    margin-bottom: var(--space-6);
}

.home-work__header h2 {
    max-width: 42rem;
}

.home-work__header h2 span {
    color: var(--color-purple-light);
}

.home-work__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

/* ========================================
   WORK / TEMPORARY PROJECT PREVIEW
   ======================================== */

.home-work__preview {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;

    background: var(--color-surface-1);
}

.home-work__preview-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);

    height: 2.5rem;
    padding-inline: var(--space-4);

    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.home-work__preview-bar > span:not(.home-work__preview-url) {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--color-text-secondary);
    opacity: 0.45;
}

.home-work__preview-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: var(--space-4);
    padding: var(--space-6);

    background:
        radial-gradient(
            ellipse at center,
            rgb(var(--color-purple-rgb) / 0.18),
            transparent 70%
        ),
        var(--color-bg);
}

.home-work__preview-label {
    color: var(--color-ice-blue);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-align: center;
}

.home-work__preview-title {
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: -0.05em;
}

.home-work__preview-title span {
    color: var(--color-purple);
}

.home-work__preview-subtitle {
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ========================================
   WORK / RESPONSIVE
   ======================================== */

@media (min-width: 768px) {
    .home-work__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

}

@media (max-width: 639px) {
    .home-work__preview-bar {
        height: 2rem;
    }

    .home-work__preview-screen {
        gap: var(--space-3);
        padding: var(--space-4);
    }

    .home-work__preview-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

}

/* ========================================
   HOME / PROCESS
   ======================================== */

.home-process {
    border-top: 1px solid var(--color-border);
}

.home-process__header {
    max-width: 46rem;
    margin-bottom: var(--space-16);
}

.home-process__header .section-label {
    margin-bottom: var(--space-6);
}

.home-process__header h2 {
    margin-bottom: var(--space-6);
}

.home-process__header h2 span {
    color: var(--color-purple-light);
}

.home-process__intro {
    max-width: 38rem;
}

/* Steps */

.home-process__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);

    counter-reset: process;
}

.home-process__step {
    position: relative;
    min-width: 0;

    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.home-process__number {
    display: inline-block;

    margin-bottom: var(--space-6);

    color: var(--color-ice-blue);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.08em;
}

.home-process__title {
    margin-bottom: var(--space-4);

    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.15;
}

.home-process__description {
    max-width: 19rem;

    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   PROCESS / RESPONSIVE
   ======================================== */

@media (min-width: 640px) {
    .home-process__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-16) var(--space-8);
    }

}

@media (min-width: 1024px) {
    .home-process__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-8);
    }

    .home-process__step::before {
        content: "";
        position: absolute;

        top: -3px;
        left: 0;

        width: 5px;
        height: 5px;

        border-radius: 50%;
        background: var(--color-purple);
    }

}

.home-about__content .section-label {
    margin-bottom: var(--space-6);
}

.home-about__title {
    max-width: 38rem;
    margin-bottom: var(--space-8);
}

.home-about__title span {
    color: var(--color-purple-light);
}

.home-about__lead {
    max-width: 34rem;
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

.home-about__description {
    max-width: 34rem;
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.home-about__link {
    margin-top: var(--space-8);
}

/* Visual placeholder */

/* ========================================
   ABOUT / PORTRAIT & CODE COMPOSITION
   ======================================== */

.home-about__visual {
    position: relative;
    min-width: 0;
    padding-bottom: var(--space-12);
}

/* Portrait */

.home-about__portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-media);
    background: var(--color-surface-1);
}

.home-about__portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Code window */

.home-about__code-window {
    position: relative;
    z-index: 2;

    width: min(88%, 24rem);
    margin-top: -4rem;
    margin-left: -1.5rem;

    overflow: hidden;
    border: 1px solid rgb(var(--color-purple-rgb) / 0.35);
    border-radius: var(--radius-card);

    background: var(--color-surface-1);

    box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
}

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

    padding: var(--space-3) var(--space-4);

    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-2);

    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.home-about__code-dots {
    display: flex;
    gap: 0.375rem;
}

.home-about__code-dots span {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: var(--color-text-secondary);
    opacity: 0.5;
}

.home-about__code-body {
    padding: var(--space-6);
}

.home-about__code-comment {
    margin-bottom: var(--space-4);
    color: var(--color-ice-blue);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.home-about__code-body pre {
    margin: 0;
    overflow-x: auto;

    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
}

.home-about__code-body code {
    font: inherit;
}

.home-about__code-body .code-purple {
    color: var(--color-purple-light);
}

.home-about__code-body .code-blue {
    color: var(--color-ice-blue);
}

/* Responsive */

@media (max-width: 639px) {
    .home-about__visual {
        padding-bottom: 0;
    }

    .home-about__portrait {
        aspect-ratio: 4 / 3;
    }

    .home-about__code-window {
        width: 94%;
        margin-top: -2rem;
        margin-left: auto;
        margin-right: auto;
    }

    .home-about__code-body {
        padding: var(--space-4);
    }

    .home-about__code-body pre {
        font-size: 0.625rem;
    }

}

/* ========================================
   ABOUT PREVIEW / RESPONSIVE
   ======================================== */

@media (min-width: 1024px) {
    .home-about__grid {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(0, 0.95fr);

        gap: var(--space-16);
    }

}

@media (max-width: 639px) {
    .home-about__visual-placeholder {
        min-height: 18rem;
        padding: var(--space-6);
    }

    .home-about__visual-symbol {
        font-size: 4rem;
    }

}

/* ========================================
   HOME / FINAL CTA
   ======================================== */

.home-cta {
    position: relative;
    overflow: hidden;

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

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgb(var(--color-purple-rgb) / 0.18),
            transparent 65%
        ),
        var(--color-bg);
}

.home-cta__inner {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 52rem;
    margin-inline: auto;

    text-align: center;
}

.home-cta__label {
    margin-bottom: var(--space-8);
}

.home-cta__title {
    max-width: 48rem;
    margin-bottom: var(--space-8);

    font-family: var(--font-heading);
    font-size: clamp(2.375rem, 5vw, 4rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.home-cta__title span {
    display: block;
    color: var(--color-purple-light);
}

.home-cta__description {
    max-width: 38rem;
    margin-bottom: var(--space-12);
}

.home-cta__button {
    min-width: 12rem;
}

/* ========================================
   FINAL CTA / RESPONSIVE
   ======================================== */

@media (max-width: 639px) {
    .home-cta__inner {
        align-items: stretch;
    }

    .home-cta__title {
        font-size: clamp(2.375rem, 9vw, 3rem);
    }

    .home-cta__button {
        width: 100%;
    }

}