/* ───────────── TERMINAL SECTION ───────────── */
.terminal-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 140px 24px 80px;
}

.terminal-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* no gap since we removed the right card */
    max-width: 1300px; /* wider container */
    margin: 0 auto;
}

/* ─── Hide the hero card completely ─── */
.terminal-hero-card {
    display: none !important;
}

/* ─── Main panel — now takes full width ─── */
.terminal-panel {
    width: 100%;
    max-width: 1200px; /* much wider */
    min-height: 560px; /* taller */
    border-radius: 50px;
    overflow: visible;
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    gap: 40px;
    padding: 70px 60px 50px 60px; /* more breathing room */
}

.terminal-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(183, 122, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ─── Bigger, longer terminal window (no floating overlap) ─── */
.terminal-window {
    border-radius: 14px;
    width: 620px;     /* wider */
    height: 400px;    /* taller */
    position: relative;
    flex-shrink: 0;
    margin-left: 0;   /* no overlap — sits flush */
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 240, 255, 0.04);
    cursor: default;
    transition: box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-window:hover {
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5), 0 0 70px rgba(0, 240, 255, 0.08);
}

.terminal-titlebar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 20, 0.95);
    height: 38px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-titlebar .window-actions ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding-left: 20px;
}

.terminal-titlebar .window-actions ul li {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f4bf4f;
    opacity: 0.5;
}

.terminal-titlebar .window-actions ul li:first-child {
    background: #ed6a5e;
}

.terminal-titlebar .window-actions ul li:last-child {
    background: #61c554;
}

.terminal-titlebar .window-title {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    font-size: 13px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    direction: ltr;
}

.terminal-body {
    background: #0a0a14;
    height: calc(100% - 38px);
    overflow-y: auto;
    padding: 14px 18px;
    line-height: 1.7;
    position: relative;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 14px; /* slightly bigger text */
    display: flex;
    flex-direction: column;
    direction: ltr;
    text-align: left;
}

.terminal-body .line {
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 2px;
}

.terminal-body .line.prompt {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-body .line .prompt-symbol {
    color: #00f0ff;
    font-weight: bold;
}

.terminal-body .line .cmd-input {
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font: inherit;
    flex: 1;
    min-width: 50px;
}

.terminal-body .line .cmd-input:focus {
    outline: none;
}

.terminal-body .output {
    color: rgba(255, 255, 255, 0.55);
}

.terminal-body .output.error {
    color: #f87171;
}

.terminal-body .output.success {
    color: #00f0ff;
}

.terminal-body .output.info {
    color: #b77aff;
}

.terminal-body .output.warning {
    color: #fbbf24;
}

.terminal-body .output.menu-title {
    color: #ff4d94;
    font-weight: bold;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(8, 8, 20, 0.8);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 8px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.35);
}

/* ─── Promo text (now takes the remaining space) ─── */
.terminal-promo {
    flex: 1;
    min-width: 0;
    padding: 0; /* remove extra padding since layout is clean */
    direction: rtl;
    text-align: right;
}

.terminal-promo h2 {
    margin-top: 0;
    font-size: clamp(28px, 4vw, 38px); /* bigger heading */
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f0faff, #b77aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.terminal-promo p {
    margin-top: 16px;
    font-weight: 400;
    line-height: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px; /* bigger text */
}

.install-snippet {
    gap: 10px;
    padding: 14px 20px;
    margin-top: 30px;
    position: relative;
    z-index: 22;
    display: flex;
    border-radius: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    direction: ltr;
}

.install-snippet:hover {
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.03);
}

.install-snippet pre {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.install-snippet .cmd-keyword {
    color: #00f0ff;
}

.install-snippet .cmd-flag {
    opacity: 0.4;
}

.install-snippet .copy-icon {
    opacity: 0.25;
    flex-shrink: 0;
}

.install-snippet:hover .copy-icon {
    opacity: 0.5;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .terminal-panel {
        flex-direction: column;
        padding: 30px 24px 40px;
        max-width: 100%;
        min-height: auto;
    }

    .terminal-window {
        width: 100%;
        height: 380px;
        margin-left: 0 !important;
    }

    .terminal-promo {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .terminal-promo h2 {
        font-size: clamp(24px, 5vw, 32px);
    }

    .install-snippet {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .terminal-page {
        padding: 120px 16px 60px;
    }

    .terminal-panel {
        border-radius: 32px;
        padding: 20px 16px 30px;
    }

    .terminal-panel::before {
        border-radius: 32px;
    }

    .terminal-window {
        height: 300px;
        font-size: 12px;
    }

    .terminal-promo h2 {
        font-size: 22px;
    }

    .terminal-promo p {
        font-size: 15px;
    }

    .install-snippet {
        display: none;
    }
}