::selection {
    color: #101010;
    background: #dfef67;
}

html {
    overflow-x: clip;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #101010;
    overflow-x: clip;
}

.cursor {
    background-color: #101010;
}

#landing {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    flex: 1;
    min-height: 620px;
    padding: 0;
    background: #ffffff;
    color: #101010;
    align-items: stretch;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 34px 48px 40px 64px;
}

.hero-top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 0.86;
    letter-spacing: -0.055em;
    color: #101010;
}

.brand-line {
    display: block;
}

.brand-dot {
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.06em;
    background: #dfef67;
    border-radius: 1px;
    transform: translateY(0.04em);
}

.hero-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #c4c4c4;
    font-size: 15px;
    font-weight: 500;
}

.hero-links a {
    color: #5f5f5f;
    text-decoration: none;
}

.hero-links a:hover {
    color: #101010;
}

.hero-body {
    max-width: 700px;
    margin: auto 0;
    padding: 72px 0 64px;
}

#landing .hero-body h1 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(44px, 4.8vw, 74px);
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: #101010;
}

.glyph {
    display: inline-block;
    width: 0.58em;
    height: 0.58em;
    margin: 0 0.04em 0 0.08em;
    vertical-align: 0.02em;
}

.glyph-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.78em;
    height: 0.78em;
    margin: 0 0.08em;
    vertical-align: -0.06em;
    background: #dfef67;
    border-radius: 0;
}

.glyph-chip svg {
    width: 68%;
    height: 68%;
    display: block;
}

.h-dot {
    display: inline-block;
    width: 0.15em;
    height: 0.15em;
    margin-left: 0.06em;
    background: #dfef67;
    border-radius: 2px;
    transform: translateY(-0.02em);
}

.squiggle {
    display: block;
    width: 54px;
    height: 16px;
    margin: 28px 0 2px;
}

#landing .hero-body p {
    margin: 16px 0 0;
    max-width: 430px;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    color: #5c5c5c;
}

#landing .hero-body p strong {
    color: #101010;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    padding: 16px 22px;
    background: #101010;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    border-radius: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-cta-mail {
    font-weight: 400;
}

.hero-cta svg {
    display: block;
}

.hero-cta:hover {
    background: #dfef67;
    color: #101010;
    transform: translateY(-2px);
}

.privacy-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(16, 16, 16, 0.16);
    background: transparent;
    color: #bdbdbd;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
}

.privacy-open:hover {
    color: #101010;
    border-color: #101010;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.privacy-on {
    overflow: hidden;
}

.privacy-layer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-layer[hidden] {
    display: none;
}

.privacy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 16, 16, 0.42);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.privacy-dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(560px, calc(100% - 48px));
    max-height: min(58vh, 460px);
    margin: 0;
    padding: 32px 28px 28px 32px;
    overflow: auto;
    background: #ffffff;
    color: #101010;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    scrollbar-width: thin;
    scrollbar-color: #101010 #f4f4f2;
}

.privacy-dialog::-webkit-scrollbar {
    width: 8px;
}

.privacy-dialog::-webkit-scrollbar-track {
    background: #f4f4f2;
}

.privacy-dialog::-webkit-scrollbar-thumb {
    background: #101010;
}

.privacy-dialog::-webkit-scrollbar-thumb:hover {
    background: #dfef67;
}

.privacy-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #8a8a8a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.privacy-close:hover {
    color: #101010;
}

.privacy-dialog h2 {
    margin: 0 36px 14px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.privacy-dialog h3 {
    margin: 20px 0 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.privacy-dialog p,
.privacy-dialog li {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #3a3a3a;
}

.privacy-dialog p strong {
    color: #101010;
    font-weight: 700;
}

.privacy-dialog ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.privacy-dialog li {
    position: relative;
    margin: 0 0 6px;
    padding-left: 16px;
}

.privacy-dialog li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #dfef67;
}

.privacy-dialog a {
    color: #101010;
}

.hero-stage {
    position: relative;
    z-index: 1;
    background-color: #101010;
    min-height: 100%;
    overflow: visible;
}

.stage-shape-clip {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glass-field {
    display: block;
    width: 100%;
    height: 100%;
}

.code-float {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 48%;
    width: min(560px, calc(100% - 28px));
    transform: translate(-50%, -50%);
    animation: hero-float-center 6.5s ease-in-out infinite;
}

.code-window {
    display: flex;
    box-sizing: border-box;
    font-size: 11.5px;
    height: calc(14 * 1.4em + 26px);
    background: #f4f4f2;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.code-rail {
    width: 68px;
    flex: 0 0 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    color: #b5b5b5;
    border-right: 1px solid rgba(16, 16, 16, 0.06);
}

.code-main {
    flex: 1;
    padding: 14px 16px 12px 8px;
    overflow: hidden;
}

#live-code {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1em;
    line-height: 1.4;
    color: #101010;
    white-space: pre;
}

.line {
    display: block;
    min-height: 1.4em;
    padding: 0 8px;
    border-radius: 6px;
}

.line.is-on {
    background: rgba(223, 239, 103, 0.28);
}

.tok-c { color: #9a9a9a; }
.tok-s { color: #101010; }
.tok-p { color: #6a6a6a; }

.tok-v {
    background: #dfef67;
    color: #101010;
    border-radius: 4px;
    padding: 0 4px;
}

.caret {
    display: inline-block;
    width: 7px;
    height: 0.95em;
    margin-left: 2px;
    background: #101010;
    vertical-align: text-bottom;
    animation: caret-blink 1s steps(1) infinite;
}

.hero-status {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transform: translateY(calc(-100% - 12px));
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dfef67;
    box-shadow: 0 0 0 0 rgba(223, 239, 103, 0.7);
    animation: live-pulse 1.8s ease-out infinite;
}

#landing-portfolio {
    margin: 0;
    padding: 64px;
    background: #f6f6f6;
}

#landing-portfolio .item img {
    max-height: 28px;
    width: auto;
    margin: 0 auto;
    opacity: 0.78;
    filter: grayscale(1);
    transition: opacity 0.3s ease;
}

#landing-portfolio .item:hover img {
    opacity: 1;
}

#landing_footer {
    max-width: none;
    margin: 0 !important;
    padding: 48px 64px !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    color: rgba(16, 16, 16, 0.35);
    font-size: 12px;
    line-height: 1.5;
}

#landing_footer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.footer-company {
    text-align: right;
}

@keyframes hero-float-center {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 12px)); }
}

@keyframes hero-float-side {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 10px)); }
}

@keyframes caret-blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes live-pulse {
    70% { box-shadow: 0 0 0 8px rgba(223, 239, 103, 0); }
    100% { box-shadow: 0 0 0 0 rgba(223, 239, 103, 0); }
}

@media (min-width: 981px) {
    #landing {
        --hero-title: clamp(44px, 4.8vw, 74px);
        flex: none;
        height: 100vh;
        min-height: 100vh;
        grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr) !important;
        padding: 0 !important;
    }

    #landing .hero-body p {
        max-width: 340px;
    }

    .code-float {
        left: auto;
        right: 8px;
        top: 50%;
        width: min(600px, calc(100vw - max(480px, 7.8 * var(--hero-title) + 112px)));
        transform: translateY(-50%);
        animation-name: hero-float-side;
    }

    .code-window {
        height: calc(14 * 1.4em + 42px);
    }

    .code-main {
        padding: 20px 22px 18px 14px;
    }

    .code-rail {
        width: 52px;
        flex-basis: 52px;
        padding-top: 24px;
    }
}

@media (min-width: 1200px) {
    #landing .hero-body p {
        max-width: 400px;
    }

    .code-float {
        right: 16px;
        width: min(700px, calc(100vw - max(548px, 7.8 * var(--hero-title) + 132px)));
    }

    .code-rail {
        width: 68px;
        flex-basis: 68px;
        padding-top: 26px;
    }

    .code-main {
        padding: 24px 28px 22px 18px;
    }

    .code-window {
        font-size: 13px;
        height: calc(14 * 1.4em + 50px);
    }
}

@media (min-width: 1440px) {
    #landing .hero-body p {
        max-width: 430px;
    }

    .code-float {
        right: 28px;
        left: auto;
        width: min(760px, calc(100vw - max(560px, 7.8 * var(--hero-title) + 120px)));
    }

    .code-main {
        padding: 26px 32px 24px 20px;
    }

    .code-window {
        font-size: 14px;
        height: calc(14 * 1.4em + 54px);
    }
}

@media (max-width: 980px) {
    #landing {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        padding: 28px 24px 12px;
    }

    .hero-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-links {
        justify-content: flex-start;
    }

    #landing .hero-body h1 {
        font-size: 34px;
    }

    .hero-body {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-stage {
        min-height: 520px;
    }

    #landing-portfolio,
    #landing_footer {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    #landing_footer {
        flex-direction: column;
        gap: 8px;
    }

    .footer-company {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .code-float,
    .caret,
    .live-dot,
    .hero-cta {
        animation: none;
        transition: none;
    }
}
