/*=========================================
    HERO
=========================================*/

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding-top: var(--header-height);

}

.hero-grid {

    display: grid;

    grid-template-columns: 1.05fr .95fr;

    align-items: center;

    gap: 70px;

}

.hero-content {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}

.hero-badge {

    display: inline-flex;

    align-items: center;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(255, 212, 0, .12);

    color: var(--color-primary);

    margin-bottom: 24px;

}

.hero-title {

    font-family: var(--font-title);

    font-size: clamp(3rem, 5vw, 4.8rem);

    line-height: 1.05;

    margin-bottom: 24px;

}

.hero-title span {

    color: var(--color-primary);

}

.hero-description {

    font-size: 1.15rem;

    color: var(--color-text-secondary);

    max-width: 580px;

    margin-bottom: 40px;

}

.hero-actions {

    display: flex;

    gap: 18px;

    margin-bottom: 40px;

}

.btn-outline {

    border: 1px solid var(--color-border);

    color: var(--color-text);

}

.btn-outline:hover {

    border-color: var(--color-primary);

    color: var(--color-primary);

}

.hero-features {

    display: flex;

    gap: 28px;

    flex-wrap: wrap;

}

.hero-features div {

    color: var(--color-text-secondary);

}

.hero-features div::before {

    content: "✔";

    color: var(--color-primary);

    margin-right: 8px;

}

.hero-code {

    position: relative;

    min-height: 650px;

    overflow: hidden;

}

#codeBackground {

    position: absolute;

    inset: 0;

    z-index: 1;

}

.floating-code {

    position: absolute;

    width: 320px;

    padding: 22px;

    border-radius: 20px;

    background: rgba(15, 15, 15, .55);

    border: 1px solid rgba(255, 255, 255, .06);

    backdrop-filter: blur(10px);

    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);

    color: #e5e5e5;

    font-family: Consolas, monospace;

    font-size: .9rem;

    line-height: 1.8;

    opacity: 0;

    transform: translateY(20px) scale(.96);

    animation: floatCode 12s linear forwards;

}

.floating-code .kw {

    color: #FFD400;

}

.floating-code .fn {

    color: #4FD1C5;

}

.floating-code .str {

    color: #F687B3;

}

.floating-code .cursor {

    display: inline-block;

    width: 2px;

    height: 18px;

    background: #FFD400;

    animation: blink 1s infinite;

}

@keyframes blink {

    50% {
        opacity: 0;
    }

}

@keyframes floatCode {

    0% {

        opacity: 0;

        transform: translateY(20px) scale(.96);

    }

    10% {

        opacity: .85;

        transform: translateY(0) scale(1);

    }

    85% {

        opacity: .85;

    }

    100% {

        opacity: 0;

        transform: translateY(-40px) scale(1.02);

    }

}

/*=========================================
    CODE STUDIO
=========================================*/

.code-window {

    position: relative;

    z-index: 3;

    width: 100%;

    max-width: 620px;

    margin: auto;

    border-radius: 18px;

    overflow: hidden;

    background: #0d1117;

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 255, 255, .02);

    transform: perspective(1400px) rotateY(-6deg);
    transition: .4s;

}

.code-window:hover {

    transform: perspective(1400px) rotateY(0deg);

}

.studio-header {

    height: 52px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 18px;

    background: #161b22;

    border-bottom: 1px solid rgba(255, 255, 255, .05);

}

.studio-buttons {

    display: flex;

    gap: 8px;

}

.studio-buttons span {

    width: 12px;

    height: 12px;

    border-radius: 50%;

}

.studio-buttons span:nth-child(1) {

    background: #ff5f56;

}

.studio-buttons span:nth-child(2) {

    background: #ffbd2e;

}

.studio-buttons span:nth-child(3) {

    background: #27c93f;

}

.studio-title {

    color: #f3f3f3;

    font-size: .9rem;

    font-weight: 600;

}

.studio-language {

    color: #7d8590;

    font-size: .8rem;

}

.studio-status {

    display: flex;

    align-items: center;

    gap: 8px;

}

.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow: 0 0 10px #22c55e;

    animation: pulseDot 2s infinite;

}

@keyframes pulseDot {

    0% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.4);

        opacity: .6;

    }

    100% {

        transform: scale(1);

        opacity: 1;

    }

}

.studio-body {

    padding: 22px;

    min-height: 420px;

    font-family: Consolas, monospace;

    font-size: .92rem;

}

/*=========================================
    CODE
=========================================*/

.code-line {

    display: grid;

    grid-template-columns: 40px 1fr;

    gap: 16px;

    min-height: 28px;

    align-items: center;

}

.line-number {

    color: #6e7681;

    text-align: right;

    user-select: none;

}

.line-code {

    white-space: pre-wrap;

    color: #e6edf3;

}

/*=========================================
    TOKENS
=========================================*/

.token {

    transition: .2s;

}

.token.keyword {

    color: #ff7b72;

}

.token.variable {

    color: #e6edf3;

}

.token.function {

    color: #d2a8ff;

}

.token.operator {

    color: #79c0ff;

}

.token.text {

    color: #e6edf3;

}

.token.comment {

    color: #7d8590;

    font-style: italic;

}

.token.string {

    color: #a5d6ff;

}

.token.boolean {

    color: #ffa657;

}

/*=========================================
    TERMINAL
=========================================*/

.terminal-line {

    margin-top: 10px;

    color: #7ee787;

    font-size: .88rem;

    opacity: 0;

    animation: terminalAppear .35s forwards;

}

.terminal-success {

    color: #3fb950;

    font-weight: 600;

}

@keyframes terminalAppear {

    from {

        opacity: 0;

        transform: translateY(6px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/*=========================================
    DEPLOY PROGRESS
=========================================*/

.progress {

    margin-top: 14px;

    width: 100%;

    height: 6px;

    border-radius: 999px;

    overflow: hidden;

    background: #1f2937;

}

.progress-bar {

    width: 0;

    height: 100%;

    background: linear-gradient(90deg,
            #FFD400,
            #FFE770);

    animation: loading 1.8s linear forwards;

}

@keyframes loading {

    from {

        width: 0;

    }

    to {

        width: 100%;

    }

}


/*=========================================
    LAPTOP
=========================================*/

@media(max-width:1200px) {

    .hero-grid {

        gap: 50px;

    }

}

/*=========================================
    TABLET
=========================================*/

@media(max-width:992px) {
    .hero {

        text-align: center;

    }

    .hero-grid {

        grid-template-columns: 1fr;

    }

    .hero-content {

        align-items: center;

    }

    .hero-description {

        max-width: 650px;

    }

    .hero-actions {

        justify-content: center;

    }

    .hero-features {

        justify-content: center;

    }

    .hero-code {

        margin-top: 50px;

    }
}

@media(max-width:768px) {
    .hero {

        min-height: auto;

        padding-top: 140px;

    }

    .hero-title {

        font-size: 2.8rem;

    }

    .hero-description {

        font-size: 1rem;

    }

    .hero-actions {

        flex-direction: column;

        width: 100%;

    }

    .hero-actions .btn {

        width: 100%;

    }

    .hero-features {

        flex-direction: column;

        gap: 12px;

    }

    .code-window {

        max-width: 100%;

    }

    .studio-body {

        min-height: 320px;

        padding: 18px;

        font-size: .8rem;

    }

    .code-line {

        grid-template-columns: 30px 1fr;

        gap: 10px;

    }
}

/*=========================================
    SMALL MOBILE
=========================================*/

@media(max-width:480px) {
    .hero-title {

        font-size: 2.2rem;

    }

    .hero-code {

        min-height: 450px;

    }

    .code-content {

        font-size: .8rem;

    }

    .code-window {

        border-radius: 14px;

    }

    .studio-header {

        padding: 0 12px;

    }

    .studio-title {

        font-size: .8rem;

    }

    .studio-language {

        display: none;

    }

    .studio-body {

        padding: 14px;

        min-height: 280px;

        font-size: .72rem;

    }
}